Glasses Assets

Glasses can be worn by players and zombies.

This inherits the GearAsset class.

Item Asset Properties

GUID 32-digit hexadecimal: Refer to GUID documentation.

Type enum (Glasses)

Useable enum (Clothing)

ID uint16: Must be a unique identifier.

Glasses Asset Properties

Blindfold flag: Specified if glasses should blacken the player’s screen.

Nightvision_Allowed_In_ThirdPerson bool: If true, nightvision works in third-person, not just first-person. Defaults to false for backwards compatibility. Vanilla nightvision has this set to true.

Nightvision_Color color: Overrides the default color when using Vision Military. This property supports using legacy color parsing.

Nightvision_Fog_Intensity float32: Intensity of fog while nightvision is active.

Vision ELightingVision: Determines the type of lighting vision to use. When looking to assign a custom nightvision color via the Nightvision_Color property, you should use the Military enumerator. When the Headlamp enumerator is used, you can also specify properties from the PlayerSpotLightConfig struct. Defaults to None.