Player/GetPreviousWeapon

From Garry's Mod
Jump to: navigation, search
 Player:GetPreviousWeapon( )

Description

Returns the weapon the player previously had equipped.

Returns

Entity

The previous weapon of the player.

WARNING

This is not guaranteed to be a weapon entity so it should be checked with Entity:IsWeapon for safety.

Personal tools
Navigation