celery 8 Posted December 10, 2006 I have a dilemma in finding out how to write this line. I only want a script to continue when a unit fires its weapon. I have tried @_unit action ["FIRE"] but doesn't work. Share this post Link to post Share on other sites
raedor 8 Posted December 10, 2006 Try using th eventhandler fired... <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">unitFired = false _unit addEventHandler ["fired", {unitFired=true}] @unitFired Share this post Link to post Share on other sites
ColonelSandersLite 0 Posted December 10, 2006 Just be aware that the comref entry for the fired event handler is wrong. A search on that should tell you what you need to know. Share this post Link to post Share on other sites