Difference between revisions of "TNewPlayer.Headgear"
Line 2: | Line 2: | ||
Acess mode: RW | Acess mode: RW | ||
==Description== | ==Description== | ||
− | Number representing what a certain | + | Number representing what a certain bot is going to wear on the head. Available values:<br><br> |
0: Nothing<br> | 0: Nothing<br> | ||
1: Helmet<br> | 1: Helmet<br> |
Revision as of 15:53, 26 June 2013
property TNewPlayer.Headgear: Byte Acess mode: RW
Description
Number representing what a certain bot is going to wear on the head. Available values:
0: Nothing
1: Helmet
2: Hat
Example
var
MyBot: TNewPlayer;
begin
MyBot := TNewPlayer.Create;
try
MyBot.Name := 'Cool test bot!';
MyBot.Team := 1;
MyBot.Headgear := 0; //nothing on the head
MyBot.PantsColor := $FFFFFFFF;
MyBot.SkinColor := $FFFFFFFF;
Players.Add(MyBot);
finally
MyBot.Free;
end;
end;