Difference between revisions of "TNewPlayer.Name"

From Soldat Community Wiki
Jump to: navigation, search
(Example)
Line 1: Line 1:
 
  '''''property TNewPlayer.Name'''''
 
  '''''property TNewPlayer.Name'''''
   Acess mode: RW
+
   Access mode: RW
 
==Description==
 
==Description==
 
Name of the bot.
 
Name of the bot.

Revision as of 20:41, 26 June 2013

property TNewPlayer.Name
 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);
    finally
      MyBot.Free;
    end;
  end;