Garry's Mod Wiki

Revision Difference

team.TotalDeaths#511791

<function name="TotalDeaths" parent="team" type="libraryfunc">⤶ <description>Returns the sum of deaths of all players of the team.</description>⤶ <realm>Shared</realm>⤶ <args>⤶ <arg name="teamIndex" type="number">The team index.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="number">deathCount</ret>⤶ </rets>⤶ </function>⤶ ⤶ <example>⤶ <description>Get's the total deaths in a team.</description>⤶ <code>print(team.TotalDeaths(ply:Team()),team.TotalDeaths(1))</code>⤶ <output>2</output>⤶ ⤶ </example>