BIS fnc removeVirtualWeaponCargo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(added 2 examples and added links to "see also" category)
(added 2 examples and added links to "see also" category)
Line 33: Line 33:
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>[myAmmoBox,["WeaponClass1","WeaponClass2"],true] spawn BIS_fnc_removeVirtualWeaponCargo; // removes weapons from the virtualArsenal of the object myAmmoBox</code> |= Example 1
|x1= <code>[myAmmoBox,["arifle_MX_F","arifle_MXC_F"],true] spawn BIS_fnc_removeVirtualWeaponCargo; // removes weapons from the virtualArsenal of the object myAmmoBox</code> |= Example 1


|x2= <code>[myAmmoBox,"WeaponClass1"] spawn BIS_fnc_removeVirtualWeaponCargo; // removes weapon from the virtualArsenal of the object myAmmoBox</code> |= Example 2
|x2= <code>[myAmmoBox,"arifle_MX_F"] spawn BIS_fnc_removeVirtualWeaponCargo; // removes weapon from the virtualArsenal of the object myAmmoBox</code> |= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 00:20, 17 August 2015


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