unlinkItem

From Bohemia Interactive Community
Revision as of 15:01, 31 March 2026 by Lou Montana (talk | contribs) (Some wiki formatting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Hover & click on the images for description

Description

Description:
Unassign and delete existing item from its assigned slot. Nothing happens if the item does not exist or is not assigned. See also unassignItem.
Groups:
Unit Inventory

Syntax

Syntax:
unit unlinkItem item
Parameters:
unit: Object
item: String
Return Value:
Nothing

Examples

Example 1:
bluforUnit unlinkItem "NVGoggles"; opforUnit unlinkItem "NVGoggles_OPFOR"; indepUnit unlinkItem "NVGoggles_INDEP"; // or { _x unlinkItem hmd _x } forEach [bluforUnit, opforUnit, indepUnit];

Additional Information

See also:
linkItem addItem assignItem removeItem unassignItem assignedItems removeAllAssignedItems

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note
Killzone_Kid - c
Posted on Oct 15, 2018 - 14:46 (UTC)
With this command you can also unlink vest, uniform and headgear.