TActivePlayer.Active

From Soldat Community Wiki
Jump to: navigation, search
property TActivePlayer.Active: Boolean
 Access mode: R

Description

If the player (or bot) is playing, returns true.

Example

var i: byte;
begin
 for i := 1 to 32 do if Players[i].Active then
  Players[i].WriteConsole('I can see you.',$FFFFFF); //sends a message to all active players
end;