BIS fnc limitItems: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "| arma3 |1.00 " to "|game1= arma3 |version1= 1.00 ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
|descr= 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]] | ||
|p1=unit: [[Object]] | |p1= unit: [[Object]] | ||
|p2=chanceNVG: [[Number]] - (Optional, default 50) | |p2= chanceNVG: [[Number]] - (Optional, default 50) chance to keep NVGs in % (range 0..100) | ||
* 0 = | * 0 = NVGs are always removed | ||
* 100 = | * 100 = NVGs are always kept | ||
|p3=chanceBino: [[Number]] - (Optional, default 50) | |p3= chanceBino: [[Number]] - (Optional, default 50) chance to keep binoculars in % | ||
|p4=chanceGPS: [[Number]] - (Optional, default 50) | |p4= chanceGPS: [[Number]] - (Optional, default 50) chance to keep GPS in % | ||
|p5=chanceMap: [[Number]] - (Optional, default 50) | |p5= chanceMap: [[Number]] - (Optional, default 50) chance to keep Map in % | ||
|p6=chanceRadio: [[Number]] - (Optional, default 50) | |p6= chanceRadio: [[Number]] - (Optional, default 50) chance to keep radio in % | ||
|p7=chanceCompass: [[Number]] - (Optional, default 50) | |p7= chanceCompass: [[Number]] - (Optional, default 50) chance to keep compass in % | ||
|p8=chanceWatch: [[Number]] - (Optional, default 50) | |p8= chanceWatch: [[Number]] - (Optional, default 50) chance to keep watch in % | ||
|r1= [[Boolean]] | |r1= [[Boolean]] - always [[true]] | ||
|x1= < | |x1= <sqf>player call BIS_fnc_limitItems;</sqf> | ||
|x2= < | |x2= <sqf>[player, 0, 15, 30, 45, 60, 75, 90] call BIS_fnc_limitItems;</sqf> | ||
|seealso= [[BIS_fnc_limitWeaponItems]] | |seealso= [[BIS_fnc_limitWeaponItems]] [[BIS_fnc_limitAmmunition]] | ||
}} | }} |
Latest revision as of 11:05, 8 November 2023
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 NVGs in % (range 0..100)
- 0 = NVGs are always removed
- 100 = NVGs are 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 - always true
Examples
- Example 1:
- Example 2:
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