Difference between revisions of "TNewPlayer.Name"
(→Example) |
|||
Line 21: | Line 21: | ||
end; | end; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | [[Category:TNewPlayer]] | + | |
+ | [[Category: TNewPlayer]] |
Revision as of 16:58, 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;