Arma 3 Scripting

addGoggles

  • Arma 3 v0.50

Command · Markdown · JSON · original wiki page

Description

Create a new item and try to link it into goggles (glasses) slot.

Note

This command does not add NVGs, which are hmd slot items (see linkItem instead). The glasses could be one of the following modes:

_mode = getNumber(configFile >> "CfgGlasses" >> "G_Diving" >> "mode"); // 1
/*
0 - None
1 - Diving
2 - Goggles
3 - NVG
4 - DivingAndOverwater (since 2.08)
*/

Syntax

unit addGoggles type

Parameters:

Returns: Nothing

Examples

Example 1

player addGoggles "G_Tactical_Clear";

Example 2

diver addGoggles "G_Diving";

See also

goggles · removeGoggles