OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: PimpD on 22 Aug 2003, 23:21:54
-
hey im making a mp mission when the soldiers get a mission to save a guy in a town guarded by east soldiers. And when they got the guy, they need 2 bring him to a area there I got a trigger called end#1 or something.
But my problem is that sometimes they run into the trigger while trying 2 get the hostage so the mission end before they have rescue him.
I would like to know how I make a trigger that only get active if they got the hostage with them.
Possible?
Thanks :)
-
run a script that makews a boolean come true, then have the trigger activated at that boolean or simply have the script wait until the boolean is true
init.sqs entry
rescue = false; publicvariable "rescue"
script entry when the soldier has been captured
rescue = true; publicvariable "rescue"
and then the line that waits for rescue to have occured
@ rescue
you could probably simply place in the condition field of the trigger
rescue