MintyBoy 0 Posted April 10, 2003 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> IsEngineOn <vehiclename> <span id='postcolor'> When placed in a script, returns true or false. According to Vektorboson's HeliDust script, anyway. Couldn't find anything in the official comref to support this. Share this post Link to post Share on other sites
Harnu 0 Posted April 10, 2003 Maybe you can check the fuel tank, and if it's on it'll be losing gas.. </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> #check _gas = fuel vehicle player ~1 _gas2 = fuel vehicle player ?(_gas > _gas2): goto "engineison" #engineison ... <span id='postcolor'> Perhaps? Share this post Link to post Share on other sites
kittycat 0 Posted April 10, 2003 I just want something activated when engines of a helicopter are on/off Share this post Link to post Share on other sites
RED 0 Posted April 10, 2003 Like MintyBoy said, put: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">IsEngineOn chopper1<span id='postcolor'> In the condition field of a trigger, it will activate when the chopper turns on its engine. RED Share this post Link to post Share on other sites
bn880 5 Posted April 10, 2003 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (RED @ April 10 2003,12:24)</td></tr><tr><td id="QUOTE">Like MintyBoy said, put: </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">IsEngineOn chopper1<span id='postcolor'> In the condition field of a trigger, it will activate when the chopper turns on its engine. RED<span id='postcolor'> Yep it's very nice, because you can set the trigger to repeating and in the activation field you have code that will be executed when the engine is on, and in the deactivation field you can put code when engine is off. Cool stuff if you ask me. Share this post Link to post Share on other sites
MintyBoy 0 Posted April 10, 2003 You can also use the eventhandler "engine", as the DKM choppers do... Share this post Link to post Share on other sites