setLightIntensity: Difference between revisions

From Bohemia Interactive Community
No edit summary
m (Some wiki formatting)
(46 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 0.50


|0.50|= Game version
|gr1= Lights


|arg= local |=
|arg= local
|eff= local |= Effects in MP
____________________________________________________________________________________________


| Sets intensity of light.  |= Description
|eff= local
____________________________________________________________________________________________


| light '''setLightIntensity''' value |= Syntax
|descr= Sets intensity of light.


|p1= light: [[Object]] |= PARAMETER1
|s1= light [[setLightIntensity]] value


|p2= value: [[Number]] |= PARAMETER2
|p1= light: [[Object]]


| [[Nothing]] |= RETURNVALUE
|p2= value: [[Number]]


|r1= [[Nothing]]


|x1= <code>
|x1= <sqf>myLight setLightIntensity 4;</sqf>
</code>|= EXAMPLE1


____________________________________________________________________________________________
|seealso= [[setLightAmbient]] [[setLightColor]] [[lightAttachObject]] [[lightDetachObject]] [[setLightBrightness]] [[setLightAttenuation]] [[setLightUseFlare]] [[setLightFlareSize]] [[setLightFlareMaxDistance]] [[setLightDayLight]]
}}


| [[setLightAmbient]], [[setLightColor]], [[lightAttachObject]], [[setLightBrightness]], [[setLightAttenuation]], [[setLightUseFlare]], [[setLightFlareSize]], [[setLightFlareMaxDistance]], [[setLightDayLight]] |= See also
{{Note
 
|user= ffur2007slx2_5
|  |= MPBEHAVIOUR
|timestamp= 20140324233700
____________________________________________________________________________________________
|text= In {{arma3}} ver1.14 [[setLightIntensity]] will overwrite the previous effect processed by [[setLightBrightness]] on the same light source, vice versa. And both of them currently play the same role on brightness, for example: <sqf>
_light setLightIntensity 3000;
// same as
_light setLightBrightness 1;
</sqf>
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 10:52, 14 June 2022

Hover & click on the images for description

Description

Description:
Sets intensity of light.
Groups:
Lights

Syntax

Syntax:
light setLightIntensity value
Parameters:
light: Object
value: Number
Return Value:
Nothing

Examples

Example 1:
myLight setLightIntensity 4;

Additional Information

See also:
setLightAmbient setLightColor lightAttachObject lightDetachObject setLightBrightness 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
ffur2007slx2_5 - c
Posted on Mar 24, 2014 - 23:37 (UTC)
In Arma 3 ver1.14 setLightIntensity will overwrite the previous effect processed by setLightBrightness on the same light source, vice versa. And both of them currently play the same role on brightness, for example:
_light setLightIntensity 3000; // same as _light setLightBrightness 1;