TActivePlayer.Team

From Soldat Community Wiki
Revision as of 18:43, 26 June 2013 by Squiddy (talk | contribs) (Created page with " '''''property TActivePlayer.Team: Byte''''' Acess mode: RW ==Description== Number representing the current team of a player. Available values:<br><br> 0: No team<br> 1: Alp...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
property TActivePlayer.Team: Byte
 Acess mode: RW

Description

Number representing the current team of a player. Available values:

0: No team
1: Alpha
2: Bravo
3: Charlie
4: Delta
5: Spectators

Example

 var
  i: byte;
 begin
  for i := 1 to 32 do if Players[i].Team = 5 then Players[i].WriteConsole('Stop occupying player slots!',$FF0000); //sends a message to all spectators
 end;