Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
celery

Action as a condition

Recommended Posts

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

Try using th eventhandler fired... wink_o.gif

<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 smile_o.gif

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  

×