PDA

View Full Version : The "engineOn" command



essemm
Dec 20 2006, 18:11
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&#39; I&#39;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&#39;t want to shut off his engines...

Any help?

raedor
Dec 20 2006, 18:26
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 0[/QUOTE]Set it to 1 again if it&#39;s ready for start. http://forums.bistudio.com/oldsmileys/wink_o.gif

essemm
Dec 20 2006, 18:33
Hey raedor. I think that makes the pilot get out of the chopper though...doesn&#39;t it?

Trapper
Dec 20 2006, 18:35
Engineon only returns the engine status and doesn&#39;t affect it.

TeRp
Dec 20 2006, 18:37
Engineon only returns the engine status and doesn&#39;t affect it.
Sure?
Haven&#39;t tried it yet, but the Wiki (http://community.bistudio.com/wiki/engineOn) says something else.

Hawke
Dec 21 2006, 11:41
isEngineOn (http://community.bistudio.com/wiki/isEngineOn) returns the status