BIS fnc limitItems: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *(\[[a-zA-Z,. ]*\] call ('''|\[\[)?BI(N|S)_fnc_[a-zA-Z]+('''|\]\])?) * \|p1=" to " |s1=$1 |p1=")
m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=]{12})" to "|$1=$2 |descr=$3")
Line 7: Line 7:
|gr1= Inventory
|gr1= Inventory


| Keeps or removes unit's items (including NVGs and binocular/designator) based on probability user sets.
|descr= Keeps or removes unit's items (including NVGs and binocular/designator) based on probability user sets.


|s1=[unit,chanceNVG,chanceBino,chanceGPS,chanceMap,chanceRadio,chanceCompass,chanceWatch] call [[BIS_fnc_limitItems]]
|s1=[unit,chanceNVG,chanceBino,chanceGPS,chanceMap,chanceRadio,chanceCompass,chanceWatch] call [[BIS_fnc_limitItems]]

Revision as of 21:49, 13 June 2021

Hover & click on the images for description

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

See also:
BIS_fnc_limitWeaponItemsBIS_fnc_limitAmmunition

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