setLightBrightness: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Some wiki formatting)
 
(47 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma |= Game name
|game1= arma1
|version1= 1.00


|1.00|= Game version
|game2= arma2
|version2= 1.00


|arg= global |=
|game3= arma2oa
|eff= local |= Effects in MP
|version3= 1.50
____________________________________________________________________________________________


| Set brightness of light. |= Description
|game4= tkoh
____________________________________________________________________________________________
|version4= 1.00


| light '''setLightBrightness''' brightness |= Syntax
|game5= arma3
|version5= 0.50


|p1= light: [[Object]] |= Parameter 1
|gr1= Lights


|p2= brightness: [[Number]] |= Parameter 2
|arg= local


| [[Nothing]] |= Return value
|eff= local
____________________________________________________________________________________________


| [[setLightAmbient]], [[setLightColor]], [[lightAttachObject]], [[SetLightIntensity]], [[SetLightAttenuation]], [[SetLightUseFlare]], [[SetLightFlareSize]], [[setLightFlareMaxDistance]], [[setLightDayLight]] |= See also
|descr= Set brightness of light.
{{Feature|arma3|This command is outdated. Use [[setLightIntensity]] instead.}}


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


<h3 style="display:none">Notes</h3>
|p1= light: [[Object]]
<dl class="command_description">
<!-- Note Section BEGIN -->
Light can be created with command createVehicle with special vehicle class "#lightpoint"


for example:
|p2= brightness: [[Number]]


_light = "#lightpoint" createVehicleLocal pos;
|r1= [[Nothing]]


_light setLightBrightness 1.0;
|x1= <sqf>myLight setLightBrightness 2;</sqf>


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


{{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]];
_light lightAttachObject [_object, [0,0,0]];
 
</sqf>
<dd class="notedate">Posted on Mar 22, 2014 - 23:32
}}
<dt class="note">'''[[User:ffur2007slx2_5|ffur2007slx2_5]]'''<dd class="note">In ArmA3 ver1.14 setLightBrightness will overwrite the previous effect processed by SetLightIntensity, SetLightAttenuation, SetLightUseFlare, SetLightFlareSize, setLightFlareMaxDistance or setLightDayLight on the same light source, vice versa.
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|SETLIGHTBRIGHTNESS]]
[[Category:Scripting Commands OFP Elite |SETLIGHTBRIGHTNESS]]
[[Category:Scripting Commands ArmA|SETLIGHTBRIGHTNESS]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 12: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]];