TNewPlayer.Alive

From Soldat Community Wiki
Revision as of 18:50, 26 June 2013 by Squiddy (talk | contribs) (Created page with " '''''property TNewPlayer.Alive: Boolean''''' Acess mode: RW ==Description== Wether the bot is alive or not. == Example == <syntaxhighlight lang="pascal"> var MyBot: ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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;