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: ...")
(No difference)

Revision as of 18:50, 26 June 2013

property TNewPlayer.Alive: Boolean
 Acess mode: RW

Description

Wether the bot is alive or not.

Example

  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;