Difference between revisions of "TNewPlayer.Headgear"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with " '''''property TNewPlayer.Headgear: Byte''''' Acess mode: RW Result: number representing the headgear of a player ==Description== What a certain player (i.e. bot) is going...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
  '''''property TNewPlayer.Headgear: Byte'''''
 
  '''''property TNewPlayer.Headgear: Byte'''''
   Acess mode: RW
+
   Access mode: RW
  Result: number representing the headgear of a player
 
 
==Description==
 
==Description==
What a certain player (i.e. bot) is going to wear on the head. It results in 0, 1 or 2.<br><br>
+
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>
Line 26: Line 25:
 
   end;
 
   end;
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
[[Category:TNewPlayer]]

Latest revision as of 20:42, 26 June 2013

property TNewPlayer.Headgear: Byte
 Access 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;