Player/GetPreviousWeapon

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
Code gs (Talk | contribs)
(Created page with "{{Func |Description=Returns the weapon the player previously had equipped. |Realm=Shared |IsClass=Yes }} {{Ret |type=Entity |desc=The previous weapon of the player. {{Warning...")

Latest revision as of 06:06, 16 November 2019

 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