Arma 3 Scripting

Command in Lights

getLighting

Also available as Markdown and JSON, or read the original wiki page.

Description

Gets general environment's light settings.

Syntax

getLighting

Returns: Array with [ambientLightColor, ambientLightBrightness, lightDirection, starsVisibility]

Examples

Example 1

getLighting; // returns [[0.646753,0.781818,1],28526.2,[-0.0167152,0.211598,-0.977214],0]

Example 2

getLighting params ["_ambientLightColour", "_ambientLightBrightness", "_lightDirection", "_starsVisibility"];

See also

getLightingAt · moonPhase · Light Source Tutorial

Community notes