Difference between revisions of "TPlayer.Alive"

From Soldat Community Wiki
Jump to: navigation, search
(new page)
 
(Added bug notification)
 
Line 3: Line 3:
 
==Description==
 
==Description==
 
True if a player is currently alive, false otherwise.<br>
 
True if a player is currently alive, false otherwise.<br>
 +
{{bug|(#396) Setting Alive to FALSE freezes the server}}
  
 
==Example==
 
==Example==

Latest revision as of 17:34, 10 September 2013

property Alive: Boolean
 Access mode: R

Description

True if a player is currently alive, false otherwise.

Bug: (#396) Setting Alive to FALSE freezes the server

Example

Example kills all players that are alive

 var
  i: Byte;
 begin
  for i := 1 to 32 do if Players[i].Alive then
   Players[i].Alive := FALSE;
 end;