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

Trigger activated by a unit firing/discharging its weapon?

Recommended Posts

Is this possible? I could not find a scripting command in the wiki. :(

I have unwanted results when trying to use the 'ammo' command (check whether a unit's ammo has changed, thus assuming it has fired it if there is a difference)

Thanks in advance

Edited by vinc3nt

Share this post


Link to post
Share on other sites

The command to look for is called addEventHandler which has various options that have been covered many times in great detail.

Try doing a search in the scripting section as there are many post there this section is more for addons.

http://forums.bistudio.com/forumdisplay.php?f=93

and this post will get you started http://forums.bistudio.com/showthread.php?t=100564&highlight=addeventhandler

Edited by F2k Sel

Share this post


Link to post
Share on other sites
The command to look for is called addEventHandler which has various options that have been covered many times in great detail.

Try doing a search in the scripting section as there are many post there this section is more for addons.

http://forums.bistudio.com/forumdisplay.php?f=93

and this post will get you started http://forums.bistudio.com/showthread.php?t=100564&highlight=addeventhandler

Thanks :); I looked a bit about the event handlers in the wiki but I didn't understand them. This link explains it better.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×