BIS_fnc_removeVirtualWeaponCargo

From Bohemia Interactive Community
Revision as of 00:20, 17 August 2015 by Moerderhoschi (talk | contribs) (added 2 examples and added links to "see also" category)
Jump to navigation Jump to search


Hover & click on the images for description

Description

Description:
/*

	Description:
	Remove virtual weapons from an object (e.g., ammo box).
	Virtual items can be selected in the Arsenal.

	Parameter(s):
		0: OBJECT - objct from which weapons will be removed
		1: STRING or ARRAY of STRINGs - weapon class(es) to be removed
		2 (Optional): BOOL - true to remove weapons 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:
[myAmmoBox,["arifle_MX_F","arifle_MXC_F"],true] spawn BIS_fnc_removeVirtualWeaponCargo; // removes weapons from the virtualArsenal of the object myAmmoBox
Example 2:
[myAmmoBox,"arifle_MX_F"] spawn BIS_fnc_removeVirtualWeaponCargo; // removes weapon from the virtualArsenal of the object myAmmoBox

Additional Information

See also:
ArsenalBIS_fnc_addVirtualWeaponCargoBIS_fnc_getVirtualWeaponCargo

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