Jump to content
Sign in to follow this  
Bioz

heli waits until units are into it before leaving

Recommended Posts

Hello guys I didn't find anything useful about that issue. How to let a chopper wait that some specific units are inside it before leaving?

Share this post


Link to post
Share on other sites

You don't say where you wish to use it, script or trigger/waypont

set for

chopper named heli

group named blue

in a codition

{_x in helo}count units blue  == {alive _x} count units  blue 

or as an if statement

if {_x in helo}count units blue  == {alive _x} count units  blue  then {do stuff here};

common practice is to use a switch trigger synced to a waypoint. when the conditon is true (group inside) the waypoint will activate.

Edited by F2k Sel

Share this post


Link to post
Share on other sites

what if i have a single unit? I simply put its name insted of "blue"?

Share this post


Link to post
Share on other sites

Yes that should work

or you could do it like this Ted being the units name, as there is only one unit it doesn't need the count part

!alive Ted or Ted in  helo

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  

×