TNewPlayer.PantsColor

From Soldat Community Wiki
Revision as of 06:00, 21 August 2018 by Savage0795 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
property PantsColor: Longword
 Access mode: RW

Description

3-bytes hexadecimal code representing the pants color of a 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; //blue hair!
      MyBot.PantsColor := $FFFFFFFF;
      MyBot.SkinColor := $FFFFFFFF;
      Players.Add(MyBot);
    finally
      MyBot.Free;
    end;
  end;