Difference between revisions of "TNewPlayer.HairStyle"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with " '''''property TNewPlayer.HairStyle: Byte''''' Acess mode: RW ==Description== Number representing the hair style of a bot. Available values:<br><br> 0: Army<br> 1: Dreadlock...")
 
Line 28: Line 28:
 
   end;
 
   end;
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
[[Category:TNewPlayer]]

Revision as of 17:39, 26 June 2013

property TNewPlayer.HairStyle: Byte
 Acess mode: RW

Description

Number representing the hair style of a bot. Available values:

0: Army
1: Dreadlocks
2: Punk
3: Mr.T Style
4: Normal

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, right
      MyBot.Hairstyle := 3; //I PITY THE FOOL WHO WEARS MY HAIR
      MyBot.PantsColor := $FFFFFFFF;
      MyBot.SkinColor := $FFFFFFFF;
      Players.Add(MyBot);
    finally
      MyBot.Free;
    end;
  end;