BIS fnc removeVirtualWeaponCargo: Difference between revisions

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


|x1= <code></code> |=  
|x1= <code>[myAmmoBox,["WeaponClass1","WeaponClass2"],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
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[Arsenal]], [[BIS_fnc_addVirtualWeaponCargo]], [[BIS_fnc_getVirtualWeaponCargo]] |= See also


}}
}}

Revision as of 23:17, 16 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,["WeaponClass1","WeaponClass2"],true] spawn BIS_fnc_removeVirtualWeaponCargo; // removes weapons from the virtualArsenal of the object myAmmoBox
Example 2:
[myAmmoBox,"WeaponClass1"] 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