BIS fnc limitItems: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ") |
Lou Montana (talk | contribs) m (Text replacement - "\|( *\[\[[a-zA-Z]+\]\]) * \|x1=" to "\|r1=$1 \|x1=") |
||
Line 29: | Line 29: | ||
|p8=chanceWatch: [[Number]] - (Optional, default 50) - Chance to keep watch in % | |p8=chanceWatch: [[Number]] - (Optional, default 50) - Chance to keep watch in % | ||
| [[Boolean]] | \|r1= [[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> |
Revision as of 10:26, 10 June 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Inventory
Syntax
- Syntax:
- Syntax needed
- 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