Praxtor 0 Posted July 24, 2007 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
ManDay 0 Posted July 24, 2007 Is english your first language? Share this post Link to post Share on other sites
JAMF 0 Posted July 24, 2007 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
franze 196 Posted July 24, 2007 ManDay, JAMF - if you haven't got anything useful to say, don't post. @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
ManDay 0 Posted July 25, 2007 I tried to express, that I didn't understand his question And I still don't. Engine, Crash, huh? Share this post Link to post Share on other sites
ColonelSandersLite 0 Posted July 26, 2007 To detect when helicopter is destroyed, use the "killed" eventhandler. May have better luck with canMove. Share this post Link to post Share on other sites
Praxtor 0 Posted July 28, 2007 Yes thanks a lot, i used killed and it works correctly. ;-) Share this post Link to post Share on other sites