on_weapon_equip(func_name, name)

Parameters:
func_name (string) name of the function, or "" to unregister the event
name (srting) name of the player
 
Returns:
none

Description:
Register a callback function for when a player changes his current weapon.

When the callback is executed, the following parameters are passed to it:
 - (string) name of the current weapon, or "Fist" if now unarmed
 - (boolean) true if the current weapon is a firearm, or false if not

 

back to indexSR3 Script Action Documentation
Last updated: Tue, 09 Aug 2011 11:32:15