BIS fnc limitItems: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (pf)
Line 15: Line 15:


|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 |Parameter 1=
* 100 = Item is always kept |Parameter2=


|p2=chanceBino: [[Number]] - (Optional, default 50) - Chance to keep binoculars in % |Parameter 2=
|p3=chanceBino: [[Number]] - (Optional, default 50) - Chance to keep binoculars in % |Parameter 3=


|p3=chanceGPS: [[Number]] - (Optional, default 50) - Chance to keep GPS in % |Parameter 3=
|p4=chanceGPS: [[Number]] - (Optional, default 50) - Chance to keep GPS in % |Parameter 4=


|p4=chanceMap: [[Number]] - (Optional, default 50) - Chance to keep Map in % |Parameter 4=
|p5=chanceMap: [[Number]] - (Optional, default 50) - Chance to keep Map in % |Parameter 5=


|p5=chanceRadio: [[Number]] - (Optional, default 50) - Chance to keep radio in % |Parameter 5=
|p6=chanceRadio: [[Number]] - (Optional, default 50) - Chance to keep radio in % |Parameter 6=


|p6=chanceCompass: [[Number]] - (Optional, default 50) - Chance to keep compass in % |Parameter 6=
|p7=chanceCompass: [[Number]] - (Optional, default 50) - Chance to keep compass in % |Parameter 7=


|p7=chanceWatch: [[Number]] - (Optional, default 50) - Chance to keep watch in % |Parameter 7=
|p8=chanceWatch: [[Number]] - (Optional, default 50) - Chance to keep watch in % |Parameter 8=


| [[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=


|x2= <code>[ [[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=  
}}
}}


Line 51: Line 51:
<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Inventory|{{uc:limitItems}}]]
[[Category:Function Group: Inventory|{{uc:limitItems}}]]
[[Category:Functions|{{uc:limitItems}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:limitItems}}]]

Revision as of 03:57, 25 September 2020

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:
Uncategorised

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

Notes

Bottom Section