Jump to content
Sign in to follow this  
kittycat

Check if engines are on

Recommended Posts

</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

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

I just want something activated when engines of a helicopter are on/off

Share this post


Link to post
Share on other sites

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

</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. biggrin.gif Cool stuff if you ask me.

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  

×