unlinkItem: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
| Line 10: | Line 10: | ||
|gr1= Unit Inventory | |gr1= Unit Inventory | ||
|descr= Unassign and delete existing item from its assigned slot. | |descr= Unassign and delete existing item from its assigned slot. Nothing happens if the item does not exist or is not assigned. See also [[unassignItem]]. | ||
|s1= unit [[unlinkItem]] item | |s1= unit [[unlinkItem]] item | ||
| Line 23: | Line 23: | ||
bluforUnit unlinkItem "NVGoggles"; | bluforUnit unlinkItem "NVGoggles"; | ||
opforUnit unlinkItem "NVGoggles_OPFOR"; | opforUnit unlinkItem "NVGoggles_OPFOR"; | ||
indepUnit unlinkItem "NVGoggles_INDEP"; | |||
// or | |||
{ _x unlinkItem hmd _x } forEach [bluforUnit, opforUnit, indepUnit]; | |||
</sqf> | </sqf> | ||
| Line 29: | Line 32: | ||
}} | }} | ||
{{Note | |||
|user= Killzone_Kid | |||
|timestamp= 20181015144600 | |||
|text= With this command you can also unlink [[vest]], [[uniform]] and [[headgear]]. | |||
}} | |||
With this command you can also unlink [[vest]], [[uniform]] and [[headgear]] | |||
Latest revision as of 15:01, 31 March 2026
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:
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note