TTeam.Player

From Soldat Community Wiki
Jump to: navigation, search
property Player[i: Byte]: TPlayer
 Access mode: R

Description

An array of players in the Team

Example

This example sends "Hello" message to all players in Red team.
It's important to remember bout "- 1", otherwise you will try to send a message to a player that's not in game

var 
 i: Byte;
begin
 for i:=0 to Team[1].Count - 1 do
  Team[1].Player[i].Tell('Hello');
end;