Difference between revisions of "TNewPlayer.Team"
(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...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''''property TNewPlayer.Team: Byte''''' | '''''property TNewPlayer.Team: Byte''''' | ||
− | + | Access mode: RW | |
==Description== | ==Description== | ||
Number representing the team of the bot. Available values:<br><br> | Number representing the team of the bot. Available values:<br><br> | ||
Line 8: | Line 8: | ||
3: Charlie<br> | 3: Charlie<br> | ||
4: Delta<br> | 4: Delta<br> | ||
+ | 5: Spectators<br> | ||
== Example == | == Example == | ||
Line 18: | Line 19: | ||
MyBot.Name := 'Vietcong'; | MyBot.Name := 'Vietcong'; | ||
MyBot.Team := 3; //charlie team! | MyBot.Team := 3; //charlie team! | ||
− | + | MyBot.PantsColor := $FFFFFFFF; | |
− | + | MyBot.SkinColor := $FFFFFFFF; | |
− | Players.Add( | + | Players.Add(MyBot); |
finally | finally | ||
− | + | MyBot.Free; | |
end; | end; | ||
end; | end; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | [[Category:TNewPlayer]] |
Latest revision as of 20:41, 26 June 2013
property TNewPlayer.Team: Byte Access 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;