{"name":"linkItem","title":"linkItem","type":"command","url":"https://community.bistudio.com/wiki/linkItem","revid":369226,"updated":"2024-09-03T10:34:55Z","groups":["Unit Inventory"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","locality":{"argument":"global","effect":"global"},"description":"Create and assign item to the correct slot. If there is an item in the targeted slot, it gets replaced. See also assignItem.","syntaxes":[{"syntax":"unit linkItem item","params":[{"name":"unit","type":"Object","type_expr":"Object"},{"name":"item","type":"String","type_expr":"String"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"unit"},"right":{"text":"item"}}],"examples":[{"code":["bluforUnit linkItem \"NVGoggles\";\nopforUnit linkItem \"NVGoggles_OPFOR\";\nindependentUnit linkItem \"NVGoggles_INDEP\";"]}],"see_also":["unlinkItem","addItem","assignItem","removeItem","unassignItem","assignedItems","removeAllAssignedItems"]}