BIS fnc limitItems: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "| arma3 |1.00 " to "|game1= arma3 |version1= 1.00 ") |
Lou Montana (talk | contribs) m (Text replacement - "<code>\[\[([a-zA-Z0-9_]+)\]\] \[\[([a-zA-Z0-9_]+)\]\] \[\[([a-zA-Z0-9_]+)\]\];?<\/code>" to "<sqf>$1 $2 $3;</sqf>") |
||
Line 30: | Line 30: | ||
|r1= [[Boolean]] | |r1= [[Boolean]] | ||
|x1= < | |x1= <sqf>player call BIS_fnc_limitItems;</sqf> | ||
|x2= <code>[<nowiki/>[[player]],0,15,30,45,60,75,90] [[call]] [[BIS_fnc_limitItems]];</code> | |x2= <code>[<nowiki/>[[player]],0,15,30,45,60,75,90] [[call]] [[BIS_fnc_limitItems]];</code> |
Revision as of 15:43, 10 May 2022
Description
- Description:
- Keeps or removes unit's items (including NVGs and binocular/designator) based on probability user sets.
- Execution:
- call
- Groups:
- Inventory
Syntax
- Syntax:
- [unit,chanceNVG,chanceBino,chanceGPS,chanceMap,chanceRadio,chanceCompass,chanceWatch] call BIS_fnc_limitItems
- Parameters:
- unit: Object
- chanceNVG: Number - (Optional, default 50) - Chance to keep NVG in %
- 0 = Item is always removed
- 100 = Item is always kept
- chanceBino: Number - (Optional, default 50) - Chance to keep binoculars in %
- chanceGPS: Number - (Optional, default 50) - Chance to keep GPS in %
- chanceMap: Number - (Optional, default 50) - Chance to keep Map in %
- chanceRadio: Number - (Optional, default 50) - Chance to keep radio in %
- chanceCompass: Number - (Optional, default 50) - Chance to keep compass in %
- chanceWatch: Number - (Optional, default 50) - Chance to keep watch in %
- Return Value:
- Boolean
Examples
- Example 1:
- Example 2:
[player,0,15,30,45,60,75,90] call BIS_fnc_limitItems;
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note