Difference between revisions of "TNewPlayer.Dummy"

From Soldat Community Wiki
Jump to: navigation, search
(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...")
 
(Description)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
  '''''property TNewPlayer.Dummy: Boolean'''''
 
  '''''property TNewPlayer.Dummy: Boolean'''''
   Acess mode: RW
+
   Access mode: RW
 
==Description==
 
==Description==
Wether a bot is a dummy bot or not.
+
If a bot is a dummy bot or not.
  
 
== Example ==
 
== Example ==
Line 22: Line 22:
 
   end;
 
   end;
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
[[Category:TNewPlayer]]

Latest revision as of 00:36, 1 July 2013

property TNewPlayer.Dummy: Boolean
 Access mode: RW

Description

If 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;