Jump to content
Sign in to follow this  
Turambar

Units get out of helicopter then get in...

Recommended Posts

Hi all.

I am making an intro for my mission. I have an helicopter with 3 units inside. This helicopter lands, then I order to the units to get out, then to come in a marker's location. Here's the script :

heli land "LAND";

waitUntil{isTouchingGround heli};

sleep 6;

doGetOut bodyGuard1;
doGetOut bodyGuard2;
doGetOut bodyGuard3;


bodyGuard1 doMove (getMarkerPos "pos_1");
bodyGuard2 doMove (getMarkerPos "pos_2");
bodyGuard3 doMove (getMarkerPos "pos_3");


while{(!stopped bodyGuard1) OR (!stopped bodyGuard2) OR (!stopped bodyGuard3)} do
{
if(((getMarkerPos "pos_1" distance bodyGuard1) < 1) AND (!stopped bodyGuard1)) then {bodyGuard1 stop true};
if(((getMarkerPos "pos_2" distance bodyGuard2) < 1) AND (!stopped bodyGuard2)) then {bodyGuard2 stop true};
if(((getMarkerPos "pos_3" distance bodyGuard3) < 1) AND (!stopped bodyGuard3)) then {bodyGuard3 stop true};
};

sleep 2;

heli is the helicopter (:p), bodyGuard1, 2 and 3 are the units.

"pos_1", "pos_2" and "pos_3" are 3 markers.

The units should go to the marker, then stop there. But they get out of the helicopter, they walk around (randomly), then they get in the helicopter again... :confused:

Have someone an idea, please ? I tried using waypoints rather than doMove, that doesn't work too.

Thank you for helping me :)

Edited by Turambar

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  

×