Difference between revisions of "TActivePlayer.Alive"

From Soldat Community Wiki
Jump to: navigation, search
m (Example)
(Description)
Line 2: Line 2:
 
   Access mode: RW
 
   Access mode: RW
 
==Description==
 
==Description==
Wether a player is alive or not.
+
If a player is alive or not.
  
 
==Example==
 
==Example==

Revision as of 00:23, 1 July 2013

property TActivePlayer.Alive: Boolean
 Access mode: RW

Description

If a player is alive or not.

Example

 var i: byte;
 begin
  for i := 1 to 32 do begin
    if Players[i].Alive then
      Players[i].Alive := False // causes player to die
    else
      Players[i].Alive := True; // causes player to respawn
   end;
 end;