Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Script must not continue until trigger is activated.
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Script must not continue until trigger is activated. (Read 890 times)
0 Members and 1 Guest are viewing this topic.
Olphy
Guest
Script must not continue until trigger is activated.
«
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.
Logged
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
»
Logged
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.
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Script must not continue until trigger is activated.
Top of page