Difference between revisions of "TNewPlayer.Alive"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with " '''''property TNewPlayer.Alive: Boolean''''' Acess mode: RW ==Description== Wether the bot is alive or not. == Example == <syntaxhighlight lang="pascal"> var MyBot: ...")
 
(Blanked the page)
 
Line 1: Line 1:
'''''property TNewPlayer.Alive: Boolean'''''
 
  Acess mode: RW
 
==Description==
 
Wether the bot is alive or not.
 
  
== Example ==
 
<syntaxhighlight lang="pascal">
 
  var
 
    MyBot: TNewPlayer;
 
  begin
 
    MyBot := TNewPlayer.Create;
 
    try
 
      MyBot.Name := 'Test bot!';
 
      MyBot.Team := 1;
 
      MyBot.Alive := False; //bot will spawn dead?
 
      MyBot.PantsColor := $FFFFFFFF;
 
      MyBot.SkinColor := $FFFFFFFF;
 
      Players.Add(MyBot);
 
    finally
 
      MyBot.Free;
 
    end;
 
  end;
 
</syntaxhighlight>
 

Latest revision as of 17:54, 26 June 2013