Difference between revisions of "TNewPlayer.Team"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with " '''''property TNewPlayer.Team: Byte''''' Acess mode: RW ==Description== Number representing the team of the bot. Available values:<br><br> 0: No team (like in Deathmatch)<b...")
 
(Description)
Line 8: Line 8:
 
3: Charlie<br>
 
3: Charlie<br>
 
4: Delta<br>
 
4: Delta<br>
 +
5: Spectators<br>
  
 
== Example ==
 
== Example ==

Revision as of 17:47, 26 June 2013

property TNewPlayer.Team: Byte
 Acess mode: RW

Description

Number representing the team of the bot. Available values:

0: No team (like in Deathmatch)
1: Alpha
2: Bravo
3: Charlie
4: Delta
5: Spectators

Example

  var
    MyBot: TNewPlayer;
  begin
    MyBot := TNewPlayer.Create;
    try
      MyBot.Name := 'Vietcong';
      MyBot.Team := 3; //charlie team!
      NewPlayer.PantsColor := $FFFFFFFF;
      NewPlayer.SkinColor := $FFFFFFFF;
      Players.Add(NewPlayer);
    finally
      NewPlayer.Free;
    end;
  end;