BIS_fnc_removeVirtualItemCargo

From Bohemia Interactive Community
Jump to navigation Jump to search


Hover & click on the images for description

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

See also:
ArsenalBIS_fnc_getVirtualItemCargoBIS_fnc_addVirtualItemCargo

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