setLightBrightness: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
m (Some wiki formatting)
 
(64 intermediate revisions by 15 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|R]]
{{RV|type=command
[[Category:Scripting Commands ArmA|R]]


<new command not populated>
|game1= arma1
|version1= 1.00


|game2= arma2
|version2= 1.00


<h2 style="color:#000066">''''' setLightBrightness '''''</h2>
|game3= arma2oa
|version3= 1.50


|game4= tkoh
|version4= 1.00


'''Operand types:'''
|game5= arma3
|version5= 0.50


'''Type of returned value:'''
|gr1= Lights


'''Compatibility:'''
|arg= local


'''Description:'''
|eff= local


|descr= Set brightness of light.
{{Feature|arma3|This command is outdated. Use [[setLightIntensity]] instead.}}


'''Example:'''
|s1= light [[setLightBrightness]] brightness
 
|p1= light: [[Object]]
 
|p2= brightness: [[Number]]
 
|r1= [[Nothing]]
 
|x1= <sqf>myLight setLightBrightness 2;</sqf>
 
|seealso= [[setLightIntensity]] [[setLightAmbient]] [[setLightColor]] [[lightAttachObject]] [[lightDetachObject]] [[setLightAttenuation]] [[setLightUseFlare]] [[setLightFlareSize]] [[setLightFlareMaxDistance]] [[setLightDayLight]]
}}
 
{{Note
|user= Feersum
|timestamp= 20061201164200
|text= Light can be created with command [[createVehicleLocal]] with special vehicle class {{hl|"#lightpoint"}}<br>
for example:
<sqf>
_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]];
</sqf>
}}

Latest revision as of 13:33, 25 April 2022

Hover & click on the images for description

Description

Description:
Set brightness of light.
Arma 3
This command is outdated. Use setLightIntensity instead.
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
Feersum - c
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]];