Revision Difference
Player:Alive#527025
<function name="Alive" parent="Player" type="classfunc">
<description>Checks if the player is alive.</description>
<realm>Shared</realm>
<rets>
<ret name="" type="boolean">Whether the player is alive</ret>
</rets>
</function>
<example>
<description>Loops through all the players and kills alive ones.</description>
<code>
for k, v in pairs( player.GetAll() ) do
for i, v in ipairs( player.GetAll() ) do
if ( v:Alive() ) then
v:Kill()
end
end
</code>
</example>