Arma 3 Scripting

getLightInfo

  • Arma 3 v2.22

Command · Markdown · JSON · original wiki page

Description

Returns various properties for the given #lightpoint or #lightreflector. ConePars and VolumeShapePars are exclusive properties of #lightreflector only.

Syntax

Syntax 1

getLightInfo light

Parameters:

Returns: Array with [intensity, diffuseColor, ambientColor, dayLight, IR, useFlare, flareSize, flareMaxDistance, attenuationPars, attachedToPars, conePars, volumeShapePars]

Syntax 2

light getLightInfo index

Parameters:

Returns: Anything - depends on the requested property, or Nothing

Examples

Example 1

private _lightInfo = getLightInfo light1;

Example 2

private _lightIntensity = light1 getLightInfo 0;

See also

setLightIntensity · setLightColor · setLightAmbient · setLightDayLight · setLightIR · setLightUseFlare · setLightFlareSize · setLightFlareMaxDistance · setLightAttenuation · lightAttachObject · lightDetachObject · setLightConePars · getUnitFreefallInfo · getEntityInfo · getModelInfo