setLightBrightness: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ")
(Added deprecation warning)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma1
|game1= arma1


|1.00
|version1= 1.00


|gr1= Lights
|gr1= Lights
Line 11: Line 11:
|eff= local
|eff= local


| Set brightness of light.
|descr= Set brightness of light.
{{Feature|Warning|{{GVI|arma3<!-- Exact version unknown -->}} This command has been replaced by [[setLightIntensity]]. [[setLightBrightness]] is now deprecated and should no longer be used.}}


| light [[setLightBrightness]] brightness
|s1= light [[setLightBrightness]] brightness


|p1= light: [[Object]]
|p1= light: [[Object]]
Line 19: Line 20:
|p2= brightness: [[Number]]
|p2= brightness: [[Number]]


| [[Nothing]]
|r1= [[Nothing]]


|x1= <code>myLight [[setLightBrightness]] 2;</code>
|x1= <code>myLight [[setLightBrightness]] 2;</code>


|seealso= [[setLightAmbient]], [[setLightColor]], [[lightAttachObject]], [[lightDetachObject]], [[setLightIntensity]], [[setLightAttenuation]], [[setLightUseFlare]], [[setLightFlareSize]], [[setLightFlareMaxDistance]], [[setLightDayLight]]
|seealso= [[setLightIntensity]] [[setLightAmbient]] [[setLightColor]] [[lightAttachObject]] [[lightDetachObject]] [[setLightAttenuation]] [[setLightUseFlare]] [[setLightFlareSize]] [[setLightFlareMaxDistance]] [[setLightDayLight]]
}}
}}



Revision as of 12:14, 1 June 2021

Hover & click on the images for description

Description

Description:
Set brightness of light.
Arma 3 logo black.png? This command has been replaced by setLightIntensity. setLightBrightness is now deprecated and should no longer be used.
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 1, 2006 - 16:42
Feersum
Light can be created with command createVehicleLocal with special vehicle class "#lightpoint"
for example: _light = "#lightpoint" createVehicleLocal pos; _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]];
Posted on Mar 24, 2014 - 23:27
ffur2007slx2_5
In Arma 3 ver1.14 setLightBrightness will overwrite the previous effect processed by setLightIntensity on the same light source, vice versa. And both of them currently play the same role on brightness, for example: _light setLightBrightness 1;// same as _light setLightIntensity 3000;