Player/ShouldDropWeapon

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
{{Func
 
{{Func
|Name=ShouldDropWeapon
 
|Parent=Player
 
 
|Description=Sets whether the player's current weapon should drop on death.
 
|Description=Sets whether the player's current weapon should drop on death.
  
'''NOTE!''' This seems to be reset to false when player dies.
+
{{Note|This is reset on spawn to the player class's '''DropWeaponOnDie''' field by the [[Player_Classes|Player class system]].}}
 
|Realm=Server
 
|Realm=Server
 
|IsClass=Yes
 
|IsClass=Yes

Revision as of 16:16, 30 September 2019

 Player:ShouldDropWeapon( )

Description

Sets whether the player's current weapon should drop on death.

NOTE

This is reset on spawn to the player class's DropWeaponOnDie field by the Player class system.

Arguments

boolean drop

Whether to drop the player's current weapon or not
Personal tools
Navigation