BIS fnc limitItems: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Inventory(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1 = Inventory |GROUP1= | |gr1 = Inventory |GROUP1= | ||
| Keeps or removes unit's items (including NVGs and binocular/designator) based on probability user sets. |Description= | | Keeps or removes unit's items (including NVGs and binocular/designator) based on probability user sets. |Description= | ||
| [unit,chanceNVG,chanceBino,chanceGPS,chanceMap,chanceRadio,chanceCompass,chanceWatch] call [[BIS_fnc_limitItems]] |Syntax= | | [unit,chanceNVG,chanceBino,chanceGPS,chanceMap,chanceRadio,chanceCompass,chanceWatch] call [[BIS_fnc_limitItems]] |Syntax= | ||
Line 33: | Line 30: | ||
| [[Boolean]] |Return value= | | [[Boolean]] |Return value= | ||
|x1= <code>[[player]] [[call]] [[BIS_fnc_limitItems]];</code> |Example 1= | |x1= <code>[[player]] [[call]] [[BIS_fnc_limitItems]];</code> |Example 1= | ||
Line 39: | Line 35: | ||
|x2= <code>[<nowiki/>[[player]],0,15,30,45,60,75,90] [[call]] [[BIS_fnc_limitItems]];</code> |Example 2= | |x2= <code>[<nowiki/>[[player]],0,15,30,45,60,75,90] [[call]] [[BIS_fnc_limitItems]];</code> |Example 2= | ||
| [[BIS_fnc_limitWeaponItems]], [[BIS_fnc_limitAmmunition]] |See also= | | [[BIS_fnc_limitWeaponItems]], [[BIS_fnc_limitAmmunition]] |See also= |
Revision as of 23:28, 16 January 2021
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:
player call BIS_fnc_limitItems;
- 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