TActivePlayer.Grenades

From Soldat Community Wiki
Revision as of 14:21, 1 July 2013 by Falcon (talk | contribs) (Example)
Jump to: navigation, search
property TActivePlayer.Grenades: Byte
 Access mode: R

Description

Current amount of a player's grenades.

Example

//snippet from M79 Coop Climb's code
var
 s: byte;
begin
 for s := 1 to 32 do if Players[s].Active then if Players[s].Alive then
   if Players[s].Grenades < 4 then Player.GiveBonus(4);