Player.Deaths

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:Deaths( )
Description:
Retrieves the number of times the player has died
Returns: Integer
In Object: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.Deaths]Player.Deaths [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionThis will print your amount of deaths when run.
Used onNewerClient.png
Code
print( LocalPlayer():Deaths() )
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox