OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Callous on 07 May 2003, 01:27:52
-
Well I finally finished working on my mission and everything works great, but there's one major problem...the end mission trigger is easily acessible from the starting point.
My problem is that I want to keep that trigger there, but only want it to be able to actually work when the two main objectives are completed. Some help please? ;D
-
put in the condition field of the trigger
ObjComplete
and where you set you objects to completed also set this variable to true
ObjComplete = True
So the trigger can be activated only when the variable is true.
simon
-
You probably want the trigger to fire when the player is present, so group the trigger to the player .... yes, just as if the trigger was a unit. Now look in the trigger, you will find new options in the on activation box. Select the one you want.
Now, the condition field
Condition: this and ObjComplete
The trigger will only fire when the player is in the trigger area and the variable ObjComplete is true.
You could split up the objective variables so you could have
this and Obj_1_complete and Obj_2_complete
-
Hmm, i see! Thank you for your help guys ;)