BIS fnc removeVirtualItemCargo: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(optimize changes) |
||
Line 33: | Line 33: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[ _box , "U_B_CombatUniform_mcam", true ] call BIS_fnc_removeVirtualItemCargo; // removes the item global from the virtualArsenal of the _box </code> |= Example | |x1= <code>[ _box , "U_B_CombatUniform_mcam", true ] call BIS_fnc_removeVirtualItemCargo; // removes the item global from the virtualArsenal of the _box </code> |= Example 1 | ||
|x2= <code>[ _box , ["U_B_CombatUniform_mcam","H_Booniehat_mcamo"] ] call BIS_fnc_removeVirtualItemCargo; // removes the content in the Array from the virtualArsenal of the _box </code> |= Example 2 | |x2= <code>[ _box , ["U_B_CombatUniform_mcam","H_Booniehat_mcamo"] ] call BIS_fnc_removeVirtualItemCargo; // removes the content in the Array from the virtualArsenal of the _box </code> |= Example 2 |
Revision as of 14:58, 29 May 2015
Description
- Description:
/* Description: Remove virtual items from an object (e.g., ammo box). Virtual items can be selected in the Arsenal. Parameter(s): 0: OBJECT - objct from which items will be removed 1: STRING or ARRAY of STRINGs - item class(es) to be removed 2 (Optional): BOOL - true to remove items globally (default: false) Returns: ARRAY of ARRAYs - all virtual items within the object's space in format [<items>,<weapons>,<magazines>,<backpacks>] */
(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- Syntax needed
- Return Value:
- Return value needed
Examples
- Example 1:
[ _box , "U_B_CombatUniform_mcam", true ] call BIS_fnc_removeVirtualItemCargo; // removes the item global from the virtualArsenal of the _box
- Example 2:
[ _box , ["U_B_CombatUniform_mcam","H_Booniehat_mcamo"] ] call BIS_fnc_removeVirtualItemCargo; // removes the content in the Array from the virtualArsenal of the _box
- Example 3:
[ _box , (_box call BIS_fnc_getVirtualItemCargo)] call BIS_fnc_removeVirtualItemCargo; // removes all virtualArsenal added items from the _box
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