setLightIntensity: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([a-zA-Z0-9_]+) +\[\[([a-zA-Z0-9_]+)\]\] +([a-zA-Z0-9_]+);?( *\/\/[^ ]+) *<\/code>" to "<sqf>$1 $2 $3;$4</sqf>")
m (Some wiki formatting)
Line 25: Line 25:
}}
}}


<dl class="command_description">
{{Note
 
|user= ffur2007slx2_5
<dt></dt>
|timestamp= 20140324233700
<dd class="notedate">Posted on Mar 24, 2014 - 23:37</dd>
|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>
<dt class="note">[[User:ffur2007slx2_5|ffur2007slx2_5]]</dt>
_light setLightIntensity 3000;
<dd class="note">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>
// same as
</dl>
_light setLightBrightness 1;
</sqf>
}}

Revision as of 09: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;