Difference between revisions of "TNewPlayer.Team"
(→Example) |
(→Example) |
||
Line 27: | Line 27: | ||
end; | end; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | [[Category:TNewPlayer]] |
Revision as of 17:48, 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!
MyBot.PantsColor := $FFFFFFFF;
MyBot.SkinColor := $FFFFFFFF;
Players.Add(MyBot);
finally
MyBot.Free;
end;
end;