{"name":"BIS_fnc_limitItems","operator":null,"title":"BIS fnc limitItems","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_limitItems","revid":347985,"updated":"2023-11-08T10:05:06Z","groups":["Inventory"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Keeps or removes unit's items (including NVGs and binocular/designator) based on probability user sets.","syntaxes":[{"syntax":"[unit, chanceNVG, chanceBino, chanceGPS, chanceMap, chanceRadio, chanceCompass, chanceWatch] call BIS_fnc_limitItems","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unit: Object"},{"name":"chanceNVG","type":"Number","optional":true,"default":"50","description":"chance to keep NVGs in % (range 0..100)\n- 0 = NVGs are always removed\n- 100 = NVGs are always kept","types":["Number"],"since":null,"text":"chanceNVG: Number - (Optional, default 50) chance to keep NVGs in % (range 0..100)\n- 0 = NVGs are always removed\n- 100 = NVGs are always kept"},{"name":"chanceBino","type":"Number","optional":true,"default":"50","description":"chance to keep binoculars in %","types":["Number"],"since":null,"text":"chanceBino: Number - (Optional, default 50) chance to keep binoculars in %"},{"name":"chanceGPS","type":"Number","optional":true,"default":"50","description":"chance to keep GPS in %","types":["Number"],"since":null,"text":"chanceGPS: Number - (Optional, default 50) chance to keep GPS in %"},{"name":"chanceMap","type":"Number","optional":true,"default":"50","description":"chance to keep Map in %","types":["Number"],"since":null,"text":"chanceMap: Number - (Optional, default 50) chance to keep Map in %"},{"name":"chanceRadio","type":"Number","optional":true,"default":"50","description":"chance to keep radio in %","types":["Number"],"since":null,"text":"chanceRadio: Number - (Optional, default 50) chance to keep radio in %"},{"name":"chanceCompass","type":"Number","optional":true,"default":"50","description":"chance to keep compass in %","types":["Number"],"since":null,"text":"chanceCompass: Number - (Optional, default 50) chance to keep compass in %"},{"name":"chanceWatch","type":"Number","optional":true,"default":"50","description":"chance to keep watch in %","types":["Number"],"since":null,"text":"chanceWatch: Number - (Optional, default 50) chance to keep watch in %"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"always true","text":"Boolean - always true"}}],"examples":[{"text":"```sqf\nplayer call BIS_fnc_limitItems;\n```","code":["player call BIS_fnc_limitItems;"]},{"text":"```sqf\n[player, 0, 15, 30, 45, 60, 75, 90] call BIS_fnc_limitItems;\n```","code":["[player, 0, 15, 30, 45, 60, 75, 90] call BIS_fnc_limitItems;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_limitWeaponItems","BIS_fnc_limitAmmunition"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Inventory","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}