{"name":"addHeadgear","title":"addHeadgear","type":"command","url":"https://community.bistudio.com/wiki/addHeadgear","revid":318581,"updated":"2022-05-13T09:21:08Z","groups":["Unit Inventory"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","locality":{"argument":"global","effect":"global"},"description":"Creates a headgear item and tries to link it to headgear slot. If slot is occupied with another item, the item in the slot will be replaced.","syntaxes":[{"syntax":"unit addHeadgear 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":["player addHeadgear \"H_HelmetB\";"]}],"see_also":["headgear","removeHeadgear"]}