Revision Difference
team.TotalDeaths#544160
<function name="TotalDeaths" parent="team" type="libraryfunc">
<description>Returns the total number of deaths of all players in the team.</description>
<realm>Shared</realm>
<args>
<arg name="index" type="number">The team index.</arg>
</args>
<rets>
<ret name="" type="number">Total deaths in team.</ret>
</rets>
</function>
<example>
<description>Outputs the name and total deaths of all existing teams.</description>
<code>
for k,v in pairs(team.GetAllTeams()) do
print(v.Name, team.TotalDeaths(k))
for k, v in ipairs( team.GetAllTeams() ) do
print( v.Name, team.TotalDeaths( k ) )
end
</code>
</example>