Difference between revisions of "TNewPlayer.Name"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with " '''''property TNewPlayer.Name''''' Acess mode: RW ==Description== Name of the bot. == Example == <syntaxhighlight lang="pascal"> var MyBot: TNewPlayer; begin ...")
 
(Example)
Line 13: Line 13:
 
       MyBot.Name := 'Mr. Vanilla Milkshake'; //here it is!
 
       MyBot.Name := 'Mr. Vanilla Milkshake'; //here it is!
 
       MyBot.Team := 1;
 
       MyBot.Team := 1;
      MyBot.Headgear := 0; //nothing on the head
 
 
       MyBot.PantsColor := $FFFFFFFF;
 
       MyBot.PantsColor := $FFFFFFFF;
 
       MyBot.SkinColor := $FFFFFFFF;
 
       MyBot.SkinColor := $FFFFFFFF;

Revision as of 17:55, 26 June 2013

property TNewPlayer.Name
 Acess mode: RW

Description

Name of the bot.

Example

   var
    MyBot: TNewPlayer;
  begin
    MyBot := TNewPlayer.Create;
    try
      MyBot.Name := 'Mr. Vanilla Milkshake'; //here it is!
      MyBot.Team := 1;
      MyBot.PantsColor := $FFFFFFFF;
      MyBot.SkinColor := $FFFFFFFF;
      Players.Add(MyBot);
    finally
      MyBot.Free;
    end;
  end;