Jump to content
Sign in to follow this  
essemm

The "engineOn" command

Recommended Posts

Hey folks. I'm trying to get an AI helo to go to a waypoint and wait for me to complete my mission, whereupon, I will call the helo to come pick me up (with a radio trigger). I've got it *almost* working, but I can't seem to get the helo to shut off it's engine. This is what I've got for the initialisation for the land waypoint:

<span style='color:blue'>chopper1 stop true; chopper1 flyInHeight 0; chopper1 engineOn false; chopper setFuel 1;</span> ###where chopper1 is the name of the helicopter

Then' I've got a trigger set with this code:

<span style='color:blue'>chopper1 engineOn true; chopper1 stop false; chopper1 flyInHeight 40</span>

It all works, except the <span style='color:blue'>chopper1 engineOn false</span> bit. The helo just doesn't want to shut off his engines...

Any help?

Share this post


Link to post
Share on other sites

All you have to do is<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">chopper setFuel 0Set it to 1 again if it's ready for start. wink_o.gif

Share this post


Link to post
Share on other sites

Hey raedor. I think that makes the pilot get out of the chopper though...doesn't it?

Share this post


Link to post
Share on other sites
Engineon only returns the engine status and doesn't affect it.

Sure?

Haven't tried it yet, but the Wiki says something else.

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  

×