TActivePlayer.WeaponActive

From Soldat Community Wiki
Revision as of 01:19, 1 July 2013 by Squiddy (talk | contribs) (Created page with " '''''property TActivePlayer.WeaponActive[ID: Byte]: Boolean''''' Access mode: W ==Description== Sets a weapon in the player menu available/unavailable.<br> Weapon ID goes f...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
property TActivePlayer.WeaponActive[ID: Byte]: Boolean
 Access mode: W

Description

Sets a weapon in the player menu available/unavailable.
Weapon ID goes from 1 to 14 (Eagles, HK .... Chainsaw, Law).

Example

var i: byte;
begin
  for i := 1 to 14 do if i <> 12 then
    Players[1].WeaponActive[i] := True; //deactivate all weapons but knife