OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: penguinman on 16 Jun 2005, 23:33:54
-
hello,
i need a script that waits until 2 trigers have been activated and then endWINs the mission. can sombody help me out? :)
thanks
-
Very tired and off to bed now (2.40am here) but wil try to help tomorrow. With assistance from others I got my script/trigger multi ending working.
What are you after, exactly..? (Thinx: gawd, I might be able to give something back..!)
::)
-
ok for this to work...
you will need 3 triggers:
in your two triggers that you want to be activated...
trigger one
activation filed: trigger1done=true
trigger two
activation filed: trigger2done =true
add another trigger on the map...
condition filed: trigger1done && trigger2done
type: end game
that will end your mission once the other two triggers have been activated, its not done via script, if you want to do it via script then do your 2 triggers like i said above...
make the 3rd trigger
condition filed: endgame1
type: end game
make a script, and in it put
@trigger1done && trigger2done
endgame1 = true
exit
in your init.sqs file
[] exec "whateverucallit.sqs"
-
Score!
thanks for the help :)