BIS fnc limitItems: Difference between revisions
Jump to navigation
Jump to search
m (1 revision imported: BIS Functions update 2/7) |
m (pf) |
||
Line 1: | Line 1: | ||
{{Function|Comments= | |||
____________________________________________________________________________________________ | |||
| arma3 |Game name= | |||
|1.00|Game version= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Keeps or removes unit's items (including NVGs and binocular/designator) based on probability user sets. |Description= | ||
____________________________________________________________________________________________ | |||
|1 | | [unit,chanceNVG,chanceBino,chanceGPS,chanceMap,chanceRadio,chanceCompass,chanceWatch] call [[BIS_fnc_limitItems]] |Syntax= | ||
|p1=unit: [[Object]] |Parameter 1= | |||
|p2=chanceNVG: [[Number]] - (Optional, default 50) - Chance to keep NVG in % | |||
*0 = Item is always removed | |||
*100 = Item is always kept |Parameter 1= | |||
|p2=chanceBino: [[Number]] - (Optional, default 50) - Chance to keep binoculars in % |Parameter 2= | |||
| | |p3=chanceGPS: [[Number]] - (Optional, default 50) - Chance to keep GPS in % |Parameter 3= | ||
|p4=chanceMap: [[Number]] - (Optional, default 50) - Chance to keep Map in % |Parameter 4= | |||
|p5=chanceRadio: [[Number]] - (Optional, default 50) - Chance to keep radio in % |Parameter 5= | |||
|p6=chanceCompass: [[Number]] - (Optional, default 50) - Chance to keep compass in % |Parameter 6= | |||
|p7=chanceWatch: [[Number]] - (Optional, default 50) - Chance to keep watch in % |Parameter 7= | |||
| [[Boolean]] |Return value= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| < | |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= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | | [[BIS_fnc_limitWeaponItems]], [[BIS_fnc_limitAmmunition]] |See also= | ||
}} | }} | ||
Revision as of 12:46, 20 June 2018
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
- 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