{"name":"addGoggles","title":"addGoggles","type":"command","url":"https://community.bistudio.com/wiki/addGoggles","revid":379156,"updated":"2026-10-19T12:55:09Z","groups":["Unit Inventory"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","description":"Create a new item and try to link it into goggles (glasses) slot.\n\n> [!NOTE]\n> This command does **not** add NVGs, which are hmd slot items (see linkItem instead). The glasses could be one of the following modes:\n>\n> ```sqf\n> _mode = getNumber(configFile >> \"CfgGlasses\" >> \"G_Diving\" >> \"mode\"); // 1\n> /*\n> 0 - None\n> 1 - Diving\n> 2 - Goggles\n> 3 - NVG\n> 4 - DivingAndOverwater (since 2.08)\n> */\n> ```","syntaxes":[{"syntax":"unit addGoggles type","params":[{"name":"unit","type":"Object","type_expr":"Object"},{"name":"type","type":"String","type_expr":"String"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"unit"},"right":{"text":"type"}}],"examples":[{"code":["player addGoggles \"G_Tactical_Clear\";"]},{"code":["diver addGoggles \"G_Diving\";"]}],"see_also":["goggles","removeGoggles"]}