TActivePlayer.WeaponActive

From Soldat Community Wiki
Revision as of 14:22, 1 July 2013 by Falcon (talk | contribs) (Example)
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 (if i <> 12) then
    Players[i].WeaponActive[i] := False; //deactivate all weapons but knife