OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 999chris on 06 May 2005, 15:45:09

Title: ? Conditions in Camera.sqs's
Post by: 999chris on 06 May 2005, 15:45:09
Hello Hello... I have a complex camera script, and sometimes... due to AI errors and such. My Mr. Resistance dosent arrive to the waypoint in time for the camera to see him... so... how do I make it so the camera wont move until my Man reaches a waypoint...

e.g
Waypoint:
On Activation: fart=true

IN CAMERA.SQS
~3
? fart
_cam camsettarget mate
_cam set.... blah blah blah
Title: Re:? Conditions in Camera.sqs's
Post by: Pilot on 06 May 2005, 16:08:02
Don't use a "?" for this, use a "@".

If you want to use a "?", try this:
Code: [Select]
IN CAMERA.SQS
~3
#Loop
?fart: goto "Cam"
~1
goto "Loop"

#Cam
_cam camsettarget mate
_cam set.... blah blah blah
Title: Re:? Conditions in Camera.sqs's
Post by: 999chris on 06 May 2005, 20:18:59
so basically your saying

Use

@ instead of ?

So:

@ fart
_cam camset....
Title: Re:? Conditions in Camera.sqs's
Post by: Pilot on 07 May 2005, 02:51:51
That is correct.
Title: Re:? Conditions in Camera.sqs's
Post by: 999chris on 08 May 2005, 00:53:29
Worked, cheers!