TNewPlayer.HairColor

From Soldat Community Wiki
Revision as of 17:15, 26 June 2013 by Squiddy (talk | contribs) (Created page with " '''''property TNewPlayer.HairColor: Longword''''' Acess mode: RW ==Description== Hexadecimal color code representing the hair color of a bot. 3 bytes long, '''BGR''' == Ex...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
property TNewPlayer.HairColor: Longword
 Acess mode: RW

Description

Hexadecimal color code representing the hair color of a bot. 3 bytes long, BGR

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; //red hair!
      MyBot.PantsColor := $FFFFFFFF;
      MyBot.SkinColor := $FFFFFFFF;
      Players.Add(MyBot);
    finally
      MyBot.Free;
    end;
  end;