Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Image Modified



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

...

    • 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