Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.19

Description

Description:Sets light mode for a light source object.

Syntax

Syntax:light setLightMode mode
Parameters:
  • light: Object - Light object (see Light Systems in VBS in the VBS3 Developer Reference). 
  • mode: Number - Light mode. Can be:
    • 1: Day
    • 2: NV
    • 3: Day and NV
    • 4: TI
    • Other combinations are possible.
Return Value:Nothing

Examples

Examples:
_light = "#lightpoint" createVehicle (getPos player);
_light setLightMode 3;

Demo mission: LightSettings.zip

Additional Information

See also: getLightMode, laserObjects
Multiplayer:
Problems:

Notes