Player/ShouldDropWeapon

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
 
Line 2: Line 2:
 
|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 is reset on spawn to the player class's '''DropWeaponOnDie''' field by the [[Player_Classes|Player class system]].}}
+
{{Note|This is reset on spawn to the [[Player_Classes|player class]]'s '''DropWeaponOnDie''' field by {{LibraryFunction|player_manager|OnPlayerSpawn|}}.}}
 
|Realm=Server
 
|Realm=Server
 
|IsClass=Yes
 
|IsClass=Yes

Latest revision as of 16:24, 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 player_manager.OnPlayerSpawn.

Arguments

boolean drop

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