TNewPlayer.Alive
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;