TNewPlayer.Dummy

From Soldat Community Wiki
Revision as of 16:25, 26 June 2013 by Squiddy (talk | contribs) (Created page with " '''''property TNewPlayer.Dummy: Boolean''''' Acess mode: RW ==Description== Wether a bot is a dummy bot or not. == Example == <syntaxhighlight lang="pascal"> var My...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
property TNewPlayer.Dummy: Boolean
 Acess mode: RW

Description

Wether a bot is a dummy bot or not.

Example

   var
    MyBot: TNewPlayer;
  begin
    MyBot := TNewPlayer.Create;
    try
      MyBot.Name := 'Not so cool test bot!';
      MyBot.Team := 1;
      MyBot.Dummy := True; //he may be useful for target practice
      MyBot.PantsColor := $FFFFFFFF;
      MyBot.SkinColor := $FFFFFFFF;
      Players.Add(MyBot);
    finally
      MyBot.Free;
    end;
  end;