Jump to content
Sign in to follow this  
rejenorst

Turning engine on for a helicopter

Recommended Posts

Along with the this flyinheight 0 command I want the helicopter to keep the engine on after landing.

Was trying the engineon command but that didn't work,

whats the action command to have the (leader aheligroup) turn on the engine?

Thanks in advance. This has been asked before but it didn't come up in my search :(

does this work? (leader heligroup) action ["engineon", helicoptername]

Share this post


Link to post
Share on other sites
Try:

player action ["engineOn", yourvehicle]

Thanks man, this command works as well as the one I posted above.

Share this post


Link to post
Share on other sites

Not sure why you say engineOn doesn't work, I'm using

 _heli land "LAND";_heli engineOn true;

in one of my scripts without any problems.

Share this post


Link to post
Share on other sites

How about the opposite? An AI controlled grouped vehicle that sits there with his engine off till it's time to move? action engineOff didn't work. I'll try the engineOn false; thing later though.

Share this post


Link to post
Share on other sites

If he's already on the ground when he starts I would put in his init line,

 this engineOn false 

a move waypoint just above the copper sync'd to a trigger with

 this engineOn true 

Share this post


Link to post
Share on other sites

Hi Cobra, sorry I never responeded to your post. I wasn't being sarcastic, it actually worked. Thanks mate :)

Share this post


Link to post
Share on other sites

I find running a script that sets the waypoints for the helicopters works pretty well. basically when the helicopter gets within a certain distance of the lz on which I have coded its first waypoint I set the land command. Once it lands I can then use the engineon action and the heli will sit there nicely. When its time to go I delete the old waypoint and have a script create the next waypoint.

Works well for me. waypoint has to be on an LZ point and it has to be a load/unload waypoint I think. Also you can't code the heli to fly out to sea or anything, has to be on a landing zone object on land.

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  

×