GM/WeaponEquip

From Garry's Mod
Jump to: navigation, search
 GM:WeaponEquip( )

Description

Called as a weapon entity is picked up by a player.

NOTE

At the time when this hook is called Entity:GetOwner will return NULL. The owner is set on the next frame

NOTE

This will not be called when picking up a weapon you already have as the weapon will be removed and WEAPON:EquipAmmo will be called instead

Arguments

Weapon weapon

The equipped weapon.

Arguments

Player owner

The player that is picking up the weapon.
Personal tools
Navigation