OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Olphy on 30 Oct 2005, 18:39:37
-
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.
-
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 (http://www.ofpec.com/tags_about.php) in your global variable name to avoid possible variable name conflicts.
-
That does the job nicely Bladdo. Thank you very much. :)
Regards.
Bazzer. :)