Jump to content
-Varan

addEventHandler ["LandedTouchDown" ... works for fixed wing aircrafts only. Workaround for helis?

Recommended Posts

How can I use the function of this event handler for helicopters?

Share this post


Link to post
Share on other sites

Try with the command : isTouchingGround

 

YourHelo spawn {

  params ["_helo"];
  _helo setVariable ["heloLanded",TRUE,TRUE];

  while {alive _helo} do {

    waitUntil { sleep 2; !isTouchingGround _helo};

    _helo setVariable ["heloLanded",FALSE,TRUE];

    waitUntil { sleep 2; isTouchingGround _helo};

    _helo setVariable ["heloLanded",TRUE,TRUE];

  };

};

Do what you need with yourHelo getVariable ["heloLanded",TRUE]   returnig TRUE or FALSE as landed.

 

 

 

 

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

×