Jump to content
Sign in to follow this  
swot

how to find name of weapon in hand using a trigger

Recommended Posts

^^^ what it says up there. need this so i can find the name of weapons in crates so i can use them.

thanks

Share this post


Link to post
Share on other sites

Here is something a little more descriptive. :rolleyes:

Place a unit, in the unit's init field put...

this addEventhandler ["fired",{hint format["%1",_this]}]

Any weapon you fire, a hint will display telling you the weapon classname, ammo classname, and magazine classname.

-AD

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  

×