Arma 3 Scripting

Command in Object Manipulation

getLightInfo

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

Description

Returns various properties for the given 1. lightpoint or 1. lightreflector. ConePars and VolumeShapePars are exclusive properties of 1. 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