Lights
30 scripting commands. Also as Markdown for agents.
- apertureParamsReturns current aperture parameters.
- diag_lightNewLoadAllows loading of lighting config during the gameplay (effectively changing the current scene lighting). Filename path can be either absolute or…
- diag_setLightNewOverrides currently used scene lighting. The operand is config that is placed as a string (not file). The changes may not be applied immediately, but…
- drawLaserDraws a laserbeam and a lightpoint at the impact location of the laser.
- enableGunLightsToggles the target group's gun lights. disableAI "LIGHTS" will disable the use of gun lights.
- getLightingGets general environment's light settings.
- getLightingAtGets provided object's lighting information.
- isCollisionLightOnReturns true if vehicle collision lights are on otherwise false.
- isIRLaserOnReturns true if there is a linked and enabled IR on the given weapon.
- isLightOnReturns true if vehicle headlights are on otherwise false.
- lightAttachObjectAttach light to given object at given position on object.
- lightDetachObjectDetach light from object.
- lightIsOnCheck if lampost is on (shining).
- setApertureSets custom eye accommodation camera aperture.
- setApertureNewSets custom camera aperture when HDR is enabled. Provided values should be set such as *minimum* <e; *standard* <e; *maximum*.
- setCollisionLightSwitches collision lights of a vehicle on/off.
- setLightAmbientSet ambient color of light. This includes surfaces that face away from the light, unlike setLightColor.
- setLightAttenuationSets attenuation of light. Standard method of attenuation (1 / (constant + linear*dist + quadratic*dist*dist)). *start* param represents distance…
- setLightBrightnessSet brightness of light. Does nothing for light reflector, for light point the formula is setLightIntensity ((brightness * 50) ^ 2)
- setLightColorSet diffuse color of light. Illuminates surfaces that are facing the light.
- setLightConeParsSets the `1. lightreflector`'s cone params.
- setLightDayLightSets if light can be used during the day.
- setLightFlareMaxDistanceSets max distance where the flare is visible.
- setLightFlareSizeSets relative size of the flare for the light.
- setLightIntensitySets intensity of light directly. setLightBrightness uses setLightIntensity internally, therefore avoid using setLightBrightness alltogether to avoid…
- setLightIRSets lightpoint in infrared range.
- setLightUseFlareSets if light has flare.
- setLightVolumeShapeSets the `1. lightreflector`'s volume shape. An empty shape will switch the light off.
- setPilotLightSwitches headlights of a vehicle on/off. Note that the vehicle has to be local, for global variant use Arma 3: Actions "LightOn"/"LightOff"
- switchLightControls whether a lamp is lit or not.