Jump to content
swiso

how to delay call for AI reinforcements ?

Recommended Posts

Hello all,

I am crating a mission where BLUFOR attack an airfiled.

I would like the OPFOR to call for reinforcements (let say 1 CAS plane ,1 attack chopper, 2 transport choppers with troops) the moment they are attacked, but I would like them to appear no sooner than 30 minutes after the call.

 

I placed an OPFOR officer in the control tower and he is "grouped" to the plane and choppers.

 

I followed this tutorial (

) for the choppers to load unload OPFOR troops, and it work great.

The only problem is that, at the moment BLUFOR attack the airfiled, 2-4 minuts later all the choppers and the plane appear over the airfiled.

 

How I should do to delay the appearing for 30 mins ?

 

If I want to add a reinforcement group on the ground ( a Tank, 2 Kamysh and 2 trucks),  should I group them to the same officer ? I have to give this group the waypoints to the airfiled, or the Officer will "tell" them where to move to ?

 

Thanks for any help.

Share this post


Link to post
Share on other sites
Guest

You can try sleep 30*60;

If you need something precise

_reinftime = time + 30*60;
waitUntil {time > _reinftime};
//code

Share this post


Link to post
Share on other sites

Thank you for the help.

Do you mean add that script to the "On Activation" part of the unit attributes?

Share this post


Link to post
Share on other sites
Guest

Thank you for the help.

Do you mean add that script to the "On Activation" part of the unit attributes?

Nah you need to delay the whole call. I could easily guide you if you do it with a script but with maps elements I think you can just add this to a trigger.

Share this post


Link to post
Share on other sites

Could you show me this command in a script please ?

I dont think that it will work in a trigger...

Thanks !

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

×