Jump to content
Sign in to follow this  
b00tsy

Hold until not present - move to

Recommended Posts

Hi guys, I tried to search for this, but could not find my answer.

I am working on a mission with an objective where you have to capture an opfor base. After the base is captured to want to move stationary air and ground troops at an other location to move to the base and take in positions through a 'not present' trigger. How would I do this? This goes beyond my limited scripting skill unfortunately :)

So to be clear, I have troops at an other locations with set waypoints to the opfor base, but I want the waypoints to stay passive untill the opfor troops in a trigger range are not present.

Edited by B00tsy

Share this post


Link to post
Share on other sites

Hi mate.... try this....

In you OPFOR "NOT PRESENT" trigger make a Global variable that gets set to TRUE when OFFOR are not present. Place it in the OnAct of the trigger.

AttackNow = true;

Give the attacking groups two MOVE waypoints each. One where they are currently waiting to attack.... and one at the point to attack (the trigger).

In the first waypoint for each attacking group add && AttackNow to the Condition.... so we have...

true && AttackNow;

Until AttackNow is true.... the attacking groups cannot advance to the next waypoint.

Hope this helps.

Edited by twirly
Clarity

Share this post


Link to post
Share on other sites

Works perfectly, thanks very much! This will make the mission much more interesting and dynamic :)

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  

×