Home   Help Search Login Register  

Author Topic: ? Conditions in Camera.sqs's  (Read 499 times)

0 Members and 1 Guest are viewing this topic.

Offline 999chris

  • Members
  • *
  • I'm a llama!
? Conditions in Camera.sqs's
« 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

Offline Pilot

  • Contributing Member
  • **
Re:? Conditions in Camera.sqs's
« Reply #1 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

Offline 999chris

  • Members
  • *
  • I'm a llama!
Re:? Conditions in Camera.sqs's
« Reply #2 on: 06 May 2005, 20:18:59 »
so basically your saying

Use

@ instead of ?

So:

@ fart
_cam camset....

Offline Pilot

  • Contributing Member
  • **
Re:? Conditions in Camera.sqs's
« Reply #3 on: 07 May 2005, 02:51:51 »
That is correct.

Offline 999chris

  • Members
  • *
  • I'm a llama!
Re:? Conditions in Camera.sqs's
« Reply #4 on: 08 May 2005, 00:53:29 »
Worked, cheers!