unassignItem: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
m (Text replacement - "_x" to "_x")
Line 28: Line 28:


|x2= <code>{
|x2= <code>{
   _x [[unassignItem]] [[hmd]] [[_x]]; {{cc|Unassign (not remove) NVGs from all units. The class name of the NVG is not needed}}
   _x [[unassignItem]] [[hmd]] [[Magic Variables#x|_x]]; {{cc|Unassign (not remove) NVGs from all units. The class name of the NVG is not needed}}
} [[forEach]] [[allUnits]];</code>
} [[forEach]] [[allUnits]];</code>



Revision as of 13:57, 25 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Unit Inventory

Syntax

Syntax:
Syntax needed
Parameters:
unit: Object
item: String
Return Value:
Return value needed

Examples

Example 1:
_bluforUnit unassignItem "NVGoggles"; _bluforUnit removeItem "NVGoggles"; _opforUnit unassignItem "NVGoggles_OPFOR"; _opforUnit removeItem "NVGoggles_OPFOR"; _independentUnit unassignItem "NVGoggles_INDEP"; _independentUnit removeItem "NVGoggles_INDEP";
Example 2:
{ _x unassignItem hmd _x; // Unassign (not remove) NVGs from all units. The class name of the NVG is not needed } forEach allUnits;

Additional Information

See also:
assignItemaddItemremoveItemlinkItemunlinkItemassignedItemsremoveAllAssignedItems

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