Jump to content
Sign in to follow this  
CaptainDawson

How do I force an AI Heli to stay on the ground while idling?

Recommended Posts

Hi,

 

I want some AI helis to stay on the ground idling. Currently, they start with engines off, and immediately try to take off when they see an enemy. No waypoints. I just want them to stay put and idle. I've tried the "engineOn" command, but haven't seen any change. The engines will turn on, but they don't start on. I'm new to scripting, so I'm not sure how to do this. I've also tried attaching the heli to an invisible helipad (this attachTo [pad, [0, 0, 0] ]; ). This prevents it from moving, but it also results in a weird glitch where the heli's rotors quickly start and stop moving. Any help appreciated!

 

Thanks

 

 

Share this post


Link to post
Share on other sites

Solved by using  "setBehavior Careless" + "engineOn" and un-grouping from all units ! Leaving the post in case any one else has the same problem in the future

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

I usually use

this flyinheight 0;

 

and then flyinheight of e.g 100m to make the ai take off.

 

this flyinheight 100;

  • Thanks 1

Share this post


Link to post
Share on other sites

in the init of the chopper:

 

this engineOn true; this flyinHeight 0;

 

When you want the chopper to take off:

 

in a trigger or script:

chopper flyinHeight 50;

(50 =50m above ground = default height)

  • Like 1
  • Thanks 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
Sign in to follow this  

×