circassian 1 Posted May 4, 2014 Hi; Here is the thing, It's a mission when the goal is to defend a place from a hostile air strikes.. How to make this mission ends or move to another objective when all hostile planes are out of serves..? Typical end trigger activation when "Not present" is not effective because when the plane is destroyed the pilot ejects and the trigger still considers him alive. I have more than 8 hostile air crofts in this mission so the "alive" condition is not operative I guess Share this post Link to post Share on other sites
ProfTournesol 956 Posted May 4, 2014 Name your planes (such as plane1...) and use the following as a condition : {alive _x} count [plane1,plane2,plane3,plane4,plane5,plane6,plane7,plane8] == 0 Share this post Link to post Share on other sites
circassian 1 Posted May 4, 2014 Thanks ProfTournesol, Its work now. Now how to change a waypoint from a script file? what is the command if there any, because I didn't find for OFP. I found for Arma.. unit setWaypointType "MOVE" OR; Can I control the activation of another trigger from a script sqs? Share this post Link to post Share on other sites
ProfTournesol 956 Posted May 4, 2014 You can control the activation of a trigger by a script ; all you need is a variable that will be set to false at first, for example in the init.sqs file (very useful to put a bunch of things concerning the mission) : TriggerOneActivated = false Put the following in the trigger condition line : This and TriggerOneActivated Then in your script, set the variable to true when the activation is needed : TriggerOneActivated = true Share this post Link to post Share on other sites
circassian 1 Posted May 4, 2014 Thanks ProfTournesol this is awesome :cool: Share this post Link to post Share on other sites