OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Zombie on 29 Jun 2003, 22:41:22
-
I can make an object turn true, but the problem is trying to set up the end trigger. What I want is the group to go somewhere, destroy an object and return to base. Everything works except the ending, because the final objective is return to base, but they trip this objective true at the start of the mission, not at the end. I tried to make this trigger:
condition: obj1 == 1
on activation: obj2 == 1
the end trrigger goes off when:
condition: obj1 == 1 AND obj2==1
which works, but then as soon as they accomplish obj1 the ending happens. What am I missing?
-
Hmm... I need to know where you set the obj1 variable...
Otherwise, this should work:
In the base, make a trigger:
Activation: east (if played east) present, set it to repeatedly
Text: basetrigger
Name: basetrigger
Condition: this
On Activation: inbase = true
On Deactivation: inbase = false
When the objective is finished, set the variable "objectivefinished" to "true"...
Make a third trigger to end the mission:
Text: endtrigger
Name: endtrigger
Type: End#1
Condition: inbase AND objectivefinished
That should do the trick! 8)
-
That was the trick. I keep forgetting about that OnDeactivation line, thanks for the help