TNewPlayer.Chain

From Soldat Community Wiki
Revision as of 20:42, 26 June 2013 by Squiddy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
property TNewPlayer.Chain: Byte
 Access mode: RW

Description

Number representing the chain style of a bot. Available values:

0: None
1: Dog tags
2: Gold

Example

   var
    MyBot: TNewPlayer;
  begin
    MyBot := TNewPlayer.Create;
    try
      MyBot.Name := 'Cool test bot!';
      MyBot.Team := 1;
      MyBot.Chain := 2; //gold chains, yo
      MyBot.PantsColor := $FFFFFFFF;
      MyBot.SkinColor := $FFFFFFFF;
      Players.Add(MyBot);
    finally
      MyBot.Free;
    end;
  end;