{"name":"addGoggles","operator":null,"title":"addGoggles","type":"command","url":"https://community.bistudio.com/wiki/addGoggles","revid":318656,"updated":"2022-05-13T09:21:15Z","groups":["Unit Inventory"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma3","name":"Arma 3","version":"0.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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).","syntaxes":[{"syntax":"unit addGoggles type","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unit: Object"},{"name":"type","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"type: String"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"unit","types":["Object"]},"right":{"text":"type","types":["String"]}}],"examples":[{"text":"```sqf\nplayer addGoggles \"G_Tactical_Clear\";\n```","code":["player addGoggles \"G_Tactical_Clear\";"]},{"text":"```sqf\ndiver addGoggles \"G_Diving\";\n```","code":["diver addGoggles \"G_Diving\";"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["goggles","removeGoggles"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Unit Inventory","Introduced with Arma 3 version 0.50","Scripting Commands"]}