Difference between revisions of "TNewPlayer.Chain"
(Created page with " '''''property TNewPlayer.Chain: Byte''''' Acess mode: RW ==Description== Number representing the chain style of a bot. Available values:<br><br> 0: None<br> 1: Dog tags<br>...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
'''''property TNewPlayer.Chain: Byte''''' | '''''property TNewPlayer.Chain: Byte''''' | ||
− | + | Access mode: RW | |
==Description== | ==Description== | ||
Number representing the chain style of a bot. Available values:<br><br> | Number representing the chain style of a bot. Available values:<br><br> | ||
Line 25: | Line 25: | ||
end; | end; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | [[Category:TNewPlayer]] |
Latest revision as of 20:42, 26 June 2013
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;