TActivePlayer.WeaponActive

From Soldat Community Wiki
Revision as of 15:12, 24 February 2016 by Shoozza (talk | contribs)
(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 available/unavailable from the weapon menu for a certain player.
Weapon ID goes from 1 to 14 (Desert Eagles, HK .... Chainsaw, Law).

Example

var i: byte;
begin
  for i := 1 to 14 do
    Players[ID].WeaponActive[i] := i = 12; // deactivate all weapons but knife
end;