Jump to content
Sign in to follow this  
circassian

Mission ends when all plane are destroyed

Recommended Posts

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

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×