Jump to content
Sign in to follow this  
Praxtor

How to Detect the engine off of one choper

Recommended Posts

Hello Guys:

I want detect when my Helicopter has the engine off like the helicopter crash i want use one Eventhandler because if in one script the helicopter engine is off the script need be to finished.

I use:

helia addEventHandler ["engine", {[_this select 0, (isEngineOn (_this select 0))] exec "inicio.sqs"}]

But only work when the Helicopter is starting the motor.

Some Idea???

Some idea detecting with one eventhandler the helicopter crashed??

Thanks a lot.

Share this post


Link to post
Share on other sites

Judging from his sig, I would guess Spanish:

"Ojo por ojo, el mundo se quedará ciego."

Share this post


Link to post
Share on other sites

ManDay, JAMF - if you haven't got anything useful to say, don't post. mad_o.gif

@Praxtor

In your script, use:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

?!(isengineon _heli): goto "engineoff"

To detect when the engine is turned off. To detect when helicopter is destroyed, use the "killed" eventhandler.

Share this post


Link to post
Share on other sites

I tried to express, that I didn't understand his question wink_o.gif And I still don't. Engine, Crash, huh?

Share this post


Link to post
Share on other sites

Yes thanks a lot, i used killed and it works correctly.

;-)

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  

×