setLightBrightness: Difference between revisions
Lou Montana (talk | contribs) m (Some wiki formatting) |
Killzone Kid (talk | contribs) No edit summary |
||
| Line 22: | Line 22: | ||
|eff= local | |eff= local | ||
|descr= Set brightness of light. | |descr= Set brightness of light. Does nothing for light reflector, for light point the formula is [[setLightIntensity]] ((brightness * 50) ^ 2) | ||
{{Feature|arma3|This command is outdated. Use [[setLightIntensity]] instead.}} | {{Feature|arma3|This command is outdated. Use [[setLightIntensity]] instead.}} | ||
Latest revision as of 01:17, 4 November 2025
Description
- Description:
- Set brightness of light. Does nothing for light reflector, for light point the formula is setLightIntensity ((brightness * 50) ^ 2)
- Groups:
- Lights
Syntax
- Syntax:
- light setLightBrightness brightness
- Parameters:
- light: Object
- brightness: Number
- Return Value:
- Nothing
Examples
- Example 1:
- myLight setLightBrightness 2;
Additional Information
- See also:
- setLightIntensity setLightAmbient setLightColor lightAttachObject lightDetachObject setLightAttenuation setLightUseFlare setLightFlareSize setLightFlareMaxDistance setLightDayLight
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
- Posted on Dec 01, 2006 - 16:42 (UTC)
-
Light can be created with command createVehicleLocal with special vehicle class "#lightpoint"
for example:_light = "#lightpoint" createVehicleLocal _posAGL; _light setLightBrightness 1.0; _light setLightAmbient [0.0, 1.0, 0.0]; _light setLightColor [0.0, 1.0, 0.0]; _light lightAttachObject [_object, [0,0,0]];
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Lights
- Scripting Commands: Local Effect