BIS fnc limitItems: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.00 | |1.00 | ||
|gr1 = Inventory | |gr1 = Inventory | ||
| Keeps or removes unit's items (including NVGs and binocular/designator) based on probability user sets. | | Keeps or removes unit's items (including NVGs and binocular/designator) based on probability user sets. | ||
| [unit,chanceNVG,chanceBino,chanceGPS,chanceMap,chanceRadio,chanceCompass,chanceWatch] call [[BIS_fnc_limitItems]] | | [unit,chanceNVG,chanceBino,chanceGPS,chanceMap,chanceRadio,chanceCompass,chanceWatch] call [[BIS_fnc_limitItems]] | ||
|p1=unit: [[Object]] | |p1=unit: [[Object]] | ||
|p2=chanceNVG: [[Number]] - (Optional, default 50) - Chance to keep NVG in % | |p2=chanceNVG: [[Number]] - (Optional, default 50) - Chance to keep NVG in % | ||
* 0 = Item is always removed | * 0 = Item is always removed | ||
* 100 = Item is always kept | * 100 = Item is always kept | ||
|p3=chanceBino: [[Number]] - (Optional, default 50) - Chance to keep binoculars in % | |p3=chanceBino: [[Number]] - (Optional, default 50) - Chance to keep binoculars in % | ||
|p4=chanceGPS: [[Number]] - (Optional, default 50) - Chance to keep GPS in % | |p4=chanceGPS: [[Number]] - (Optional, default 50) - Chance to keep GPS in % | ||
|p5=chanceMap: [[Number]] - (Optional, default 50) - Chance to keep Map in % | |p5=chanceMap: [[Number]] - (Optional, default 50) - Chance to keep Map in % | ||
|p6=chanceRadio: [[Number]] - (Optional, default 50) - Chance to keep radio in % | |p6=chanceRadio: [[Number]] - (Optional, default 50) - Chance to keep radio in % | ||
|p7=chanceCompass: [[Number]] - (Optional, default 50) - Chance to keep compass in % | |p7=chanceCompass: [[Number]] - (Optional, default 50) - Chance to keep compass in % | ||
|p8=chanceWatch: [[Number]] - (Optional, default 50) - Chance to keep watch in % | |p8=chanceWatch: [[Number]] - (Optional, default 50) - Chance to keep watch in % | ||
| [[Boolean]] | | [[Boolean]] | ||
|x1= <code>[[player]] [[call]] [[BIS_fnc_limitItems]];</code> | |x1= <code>[[player]] [[call]] [[BIS_fnc_limitItems]];</code> | ||
|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> | ||
| [[BIS_fnc_limitWeaponItems]], [[BIS_fnc_limitAmmunition]] | | [[BIS_fnc_limitWeaponItems]], [[BIS_fnc_limitAmmunition]] | ||
}} | }} | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> |
Revision as of 23:11, 17 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