Difference between revisions of "TPlayer.SkinColor"
m |
Savage0795 (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
Access mode: R | Access mode: R | ||
==Description== | ==Description== | ||
− | 3-bytes hexadecimal code representing the skin color of a player/bot. It's | + | 3-bytes hexadecimal code representing the skin color of a player/bot. It's RGB. |
== Example == | == Example == | ||
Line 16: | Line 16: | ||
MyBot.Hairstyle := 1; //cool dreadlocks | MyBot.Hairstyle := 1; //cool dreadlocks | ||
MyBot.Haircolor := $0000FF; | MyBot.Haircolor := $0000FF; | ||
− | MyBot.ShirtColor := $ | + | MyBot.ShirtColor := $FF0000; //red shirt! |
MyBot.PantsColor := $FFFFFFFF; | MyBot.PantsColor := $FFFFFFFF; | ||
MyBot.SkinColor := $FFFFFFFF; | MyBot.SkinColor := $FFFFFFFF; |
Latest revision as of 05:58, 21 August 2018
property SkinColor: Longword Access mode: R
Description
3-bytes hexadecimal code representing the skin color of a player/bot. It's RGB.
Example
var
MyBot: TNewPlayer;
begin
MyBot := TNewPlayer.Create;
try
MyBot.Name := 'Cool test bot!';
MyBot.Team := 1;
MyBot.Headgear := 0; //nothing on the head so we can see the hair
MyBot.Hairstyle := 1; //cool dreadlocks
MyBot.Haircolor := $0000FF;
MyBot.ShirtColor := $FF0000; //red shirt!
MyBot.PantsColor := $FFFFFFFF;
MyBot.SkinColor := $FFFFFFFF;
Players.Add(MyBot);
finally
MyBot.Free;
end;
end;