Garry's Mod Wiki

Revision Difference

Player:AddDeaths#515784

<function name="AddDeaths" parent="Player" type="classfunc"> <description>Add a certain amount to the player's death count</description> <realm>Server</realm> <args> <arg name="count" type="number">number of deaths to add</arg> </args> </function> <example> <description>⤶ Adds 2 deaths to player⤶ <description>Adds 2 deaths to player⤶ ``` ⤶ | Code = Entity( 1 ):AddDeaths( 2 )⤶ | Output = Player1 has 2 extra deaths on the scoreboard relative to his old score.⤶ </description>⤶ <code>Entity( 1 ):AddDeaths( 2 )</code>⤶ <output>Player1 has 2 extra deaths on the scoreboard relative to his old score.⤶ ``` ⤶ </description>⤶ </output>⤶ </example>