TNewPlayer.Name

From Soldat Community Wiki
Revision as of 16:12, 9 June 2018 by Morko (talk | contribs) (Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
property Name: string
 Access 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, TJoinNormal);
    finally
      MyBot.Free;
    end;
  end;