Home   Help Search Login Register  

Author Topic: Script must not continue until trigger is activated.  (Read 889 times)

0 Members and 1 Guest are viewing this topic.

Olphy

  • Guest
Hi.

I want to incorporate a trigger into my camera cutscene which, until activated, denies the script from continuing onto the next scene, or in this case, the next camera angle.

What must I do in order for this to work?

Regards.

Bazzer.

Offline Baddo

  • Former Staff
  • ****
  • Reservist Jaeger
Re:Script must not continue until trigger is activated.
« Reply #1 on: 30 Oct 2005, 18:46:34 »
The @ command comes into help here.

In your trigger's on activation field, set a variable to true:

wickedVariable = true

Then, in your script where you want the wait for the trigger to be, put:

@wickedVariable

Then your script will proceed from that point only when your trigger activates.

P.S. Use an OFP Tag in your global variable name to avoid possible variable name conflicts.
« Last Edit: 30 Oct 2005, 18:55:38 by Baddo »

Olphy

  • Guest
Re:Script must not continue until trigger is activated.
« Reply #2 on: 30 Oct 2005, 19:46:55 »
That does the job nicely Bladdo. Thank you very much. :)

Regards.

Bazzer. :)