Arma 3 Scripting

Command in Lights

setLightColor

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

Description

Set diffuse color of light. Illuminates surfaces that are facing the light.

Syntax

light setLightColor [r, g, b]

Parameters:

Returns: Nothing

Examples

Example 1

myLight setLightColor [0.5,0,0]; // produces red

See also

setLightAmbient · setLightBrightness · lightAttachObject · lightDetachObject · setLightIntensity · setLightAttenuation · setLightUseFlare · setLightFlareSize · setLightFlareMaxDistance · setLightDayLight · setLightIR

Community notes

ColonelSandersLite

To clarify:

  • setLightAmbient - Terrain and surrounding objects are bathed in this colour.
  • setLightColor - Controls the "haze" seen around the lightsource (ex flares).