Jump to content
mrsandbox

UnitCapture/UnitPlay Helicopter Insertion

Recommended Posts

Overall the function works great in my little scenario, now i have one problem. As soon as the chopper lands and the first part of the Unitplay Script is done, it is hovering back in the air, instead of waiting there until the condition is over.

 

[x1, CODE FOR LANDING ]spawn BIS_fnc_UnitPlay;

waitUntil {! (player in x1)};

[x1, CODE FOR FLYING AWAY] spawn BIS_fnc_UnitPlay;

If the code for Landing is played the chopper is hovering back in the air until the player gets out. but it needs to stand on the ground. I tried to disable ALL sections of the pilot AI and the chopper itself. it didnt help.

Thanks in advance if you got an idea!

Share this post


Link to post
Share on other sites

Have you set it's flyInHeight? You may need to set it to 0 to keep it grounded while it waits. 

Share this post


Link to post
Share on other sites

Works in a loop...Had allready a solution but this is much better. Thanks for your input=)!

  • Like 1

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

×