{"name":"BIS_fnc_limitItems","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","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","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","params":[{"name":"unit","type":"Object","type_expr":"Object"},{"name":"chanceNVG","type":"Number","optional":true,"default":"50","description":"chance to keep NVGs in % (range 0..100)\n\n- 0 = NVGs are always removed\n- 100 = NVGs are always kept","type_expr":"Number","text":"chanceNVG: Number - (Optional, default 50) chance to keep NVGs in % (range 0..100)\n\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 %","type_expr":"Number","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 %","type_expr":"Number","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 %","type_expr":"Number","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 %","type_expr":"Number","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 %","type_expr":"Number","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 %","type_expr":"Number","text":"chanceWatch: Number - (Optional, default 50) chance to keep watch in %"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"always true"}}],"examples":[{"code":["player call BIS_fnc_limitItems;"]},{"code":["[player, 0, 15, 30, 45, 60, 75, 90] call BIS_fnc_limitItems;"]}],"see_also":["BIS_fnc_limitWeaponItems","BIS_fnc_limitAmmunition"]}