setLightBrightness: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Some wiki formatting)
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command


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


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


|gr1 = Lights |GROUP1=
|game3= arma2oa
|version3= 1.50


|arg= local |MPARGUMENTS=
|game4= tkoh
|version4= 1.00


|eff= local |Multiplayer Effects=
|game5= arma3
|version5= 0.50


| Set brightness of light. |DESCRIPTION=
|gr1= Lights


| light [[setLightBrightness]] brightness |SYNTAX=
|arg= local


|p1= light: [[Object]] |PARAMETER1=
|eff= local


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


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


|x1= <code>myLight [[setLightBrightness]] 2;</code> |EXAMPLE1=
|p1= light: [[Object]]


| [[setLightAmbient]], [[setLightColor]], [[lightAttachObject]], [[lightDetachObject]], [[setLightIntensity]], [[setLightAttenuation]], [[setLightUseFlare]], [[setLightFlareSize]], [[setLightFlareMaxDistance]], [[setLightDayLight]] |SEEALSO=
|p2= brightness: [[Number]]
}}
 
|r1= [[Nothing]]


<h3 style="display:none">Notes</h3>
|x1= <sqf>myLight setLightBrightness 2;</sqf>
<dl class="command_description">
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on Dec 1, 2006 - 16:42</dd>
<dt class="note">[[User:Feersum|Feersum]]</dt>
<dd class="note">
Light can be created with command [[createVehicleLocal]] with special vehicle class "#lightpoint"


<br>for example:
|seealso= [[setLightIntensity]] [[setLightAmbient]] [[setLightColor]] [[lightAttachObject]] [[lightDetachObject]] [[setLightAttenuation]] [[setLightUseFlare]] [[setLightFlareSize]] [[setLightFlareMaxDistance]] [[setLightDayLight]]
<code>_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]];
</code>
<dd class="notedate">Posted on Mar 24, 2014 - 23:27
<dt class="note">[[User:ffur2007slx2_5|ffur2007slx2_5]]<dd class="note">In ArmA3 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: <code>_light [[setLightBrightness]] 1;// same as _light [[setLightIntensity]] 3000;</code>
<!-- Note Section END -->
</dl>


<h3 style="display:none">Bottom Section</h3>
{{Note
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
|user= Feersum
{{GameCategory|ofpe|Scripting Commands}}
|timestamp= 20061201164200
{{GameCategory|arma1|Scripting Commands}}
|text= Light can be created with command [[createVehicleLocal]] with special vehicle class {{hl|"#lightpoint"}}<br>
{{GameCategory|arma2|Scripting Commands}}
for example:
{{GameCategory|arma3|Scripting Commands}}
<sqf>
{{GameCategory|tkoh|Scripting Commands}}
_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]];