Arma 3 Scripting

setLightColor

  • Local argument
  • Local effect
  • Arma 3 v0.50
  • First in Operation Flashpoint: Elite v1.00

Command · Markdown · JSON · 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).