Difference between revisions of "TPlayer.Team"

From Soldat Community Wiki
Jump to: navigation, search
(new page)
 
m (Example)
 
(3 intermediate revisions by the same user not shown)
Line 20: Line 20:
 
  end;
 
  end;
 
</syntaxhighlight>
 
</syntaxhighlight>
[[Category:TActivePlayer]]
+
[[Category:TPlayer]]

Latest revision as of 12:23, 29 July 2013

property Team: Byte
 Access mode: R

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;