scripts

Talk about your new mod or map here

Moderators: bert_the_turtle, jelco

User avatar
cro5point
level1
level1
Posts: 15
Joined: Sun May 14, 2006 6:31 am

scripts

Postby cro5point » Sun May 14, 2006 6:39 am

im having a problem getting my cam to reset to the start point

this is my intro script

EnterLocation zootprime

CamMove s1 7
Say intro_zp
waitsay

CamBuildingFocus 2 200 75
Say mission_one
WaitSay
CamWait

CamReset
User avatar
jaysc
level4
level4
Posts: 523
Joined: Tue Mar 08, 2005 5:51 pm
Location: In mAyeeeee bedroom

Postby jaysc » Sun May 14, 2006 1:35 pm

you have to put spaces under the camreset so it looks like:

Code: Select all

EnterLocation zootprime

CamMove s1 7
Say intro_zp
waitsay

CamBuildingFocus 2 200 75
Say mission_one
WaitSay
CamWait

CamReset


User avatar
trickfred
level5
level5
Posts: 1691
Joined: Sat Jul 24, 2004 5:01 am
Location: The Great White North, Eh?
Contact:

Re: scripts

Postby trickfred » Sun May 14, 2006 1:58 pm

cro5point wrote:im having a problem getting my cam to reset to the start point

this is my intro script

EnterLocation zootprime

CamMove s1 7
Say intro_zp
waitsay

CamBuildingFocus 2 200 75
Say mission_one
WaitSay
CamWait

CamReset


First off, replace your CamWait with WaitCam.

CamReset does not actually send the camera back to the Start camera - it simply makes the script relinquish control of the camera so that the player can move it freely, and continue playing the mod.

Replace CamReset with:

Code: Select all

CamMove start 5
WaitCam
CamReset


...And you'll be good to go. Oh yeah, and as jaysc said above, do make sure there is at least one blank line at the end of the file, or the CamReset line will not be called, and you'll be left hanging. Literally. ;D
User avatar
cro5point
level1
level1
Posts: 15
Joined: Sun May 14, 2006 6:31 am

Postby cro5point » Mon May 15, 2006 4:40 am

thank you

Return to “Mod Projects”

Who is online

Users browsing this forum: No registered users and 1 guest