addGoggles: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "(\| * )+\}\}" to "}}")
m (Text replacement - " {3,}\|" to " |")
Line 16: Line 16:


| [[Nothing]]
| [[Nothing]]


|x1= <code>[[player]] [[addGoggles]] "G_Tactical_Clear";
|x1= <code>[[player]] [[addGoggles]] "G_Tactical_Clear";
Line 23: Line 22:
|x2= <code>diver [[addGoggles]] "G_Diving";
|x2= <code>diver [[addGoggles]] "G_Diving";
</code>
</code>


| [[goggles]], [[removeGoggles]]
| [[goggles]], [[removeGoggles]]

Revision as of 18:06, 18 January 2021

Hover & click on the images for description

Description

Description:
Create a new item and try to link it into goggles slot. This command doesn't add NVGoggles. Use addItem and assignItem or just linkItem for latter.
Groups:
Unit Inventory

Syntax

Syntax:
unit addGoggles type
Parameters:
unit: Object
type: String
Return Value:
Nothing

Examples

Example 1:
player addGoggles "G_Tactical_Clear";
Example 2:
diver addGoggles "G_Diving";

Additional Information

See also:
gogglesremoveGoggles

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note