Jump to content
Sign in to follow this  
aseliot

Landing helo

Recommended Posts

Thread number 3000 about heli's not landing, can't get this to work. I've tried everything i've found...

_insertheli = createVehicle ["B_Heli_Transport_01_F", _helispawnpos, [], 0, "FLY"];
createVehicleCrew _insertheli;

_insertheli disableAi "TARGET"; _insertheli disableAi "AUTOTARGET"; _insertheli enableAttack false;
_insertheli setCombatMode "BLUE"; _insertheli setBehaviour "CARELESS"; _insertheli allowFleeing 0;

player action ["getInCargo", _insertheli];
_iheligrp = group _insertheli;

_helispawnx = _helispawnpos select 0;
_helispawny = _helispawnpos select 1;
_playiposx = _playerinsertpos select 0;
_playiposy = _playerinsertpos select 1;

_wpmidpos = [((_helispawnx + _playiposx)/2), ((_helispawny + _playiposy)/2)];
_imidwp1 =_iheligrp addWaypoint [_wpmidpos, 50];
_imidwp1 setWaypointBehaviour "CARELESS";
_imidwp1 setWaypointBehaviour "MOVE";
_imidwp1 setWaypointSpeed "FULL";

_landingpad = "Land_HelipadEmpty_F" createVehicle _playerinsertpos;
_landingpad setVehicleVarName "helipad";
_imidwp2 =_iheligrp addWaypoint [position _landingpad, 200];
_imidwp2 setWaypointBehaviour "CARELESS";
_imidwp2 setWaypointType "UNLOAD";
_imidwp2 setWaypointSpeed "LIMITED";
_imidwp2 setWaypointStatements ["true","_insertheli land 'helipad';"];

It does everything but hovers at the end.

Share this post


Link to post
Share on other sites

try this:

 

_imidwp2 setWaypointStatements ["true", "(vehicle this) land 'GET IN'"];

Share this post


Link to post
Share on other sites

Okay nice that worked.

waitUntil {! (player in _insertheli)};

Didnt work to make the heli stop and wait for me to exit, but...

waitUntil {isTouchingGround _insertheli && {! (player in _insertheli)}};

This did work? :o

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  

×