gun
Procs | |
ZoomGrantCheck | Proc which will be called when the gun receives the COMSIG_ITEM_EQUIPPED signal. |
---|
Proc Details
ZoomGrantCheck
Proc which will be called when the gun receives the COMSIG_ITEM_EQUIPPED
signal.
This happens if the mob picks up the gun, or equips it to any of their slots.
If the slot is anything other than either of their hands (such as the back slot), un-zoom them, and Remove
the zoom action button from the mob.
Otherwise, Grant
the mob the zoom action button.
Arguments:
- source - the gun that got equipped, which is
src
. - user - the mob equipping the gun.
- slot - the slot the gun is getting equipped to.