setLightIntensity: Difference between revisions
Killzone Kid (talk | contribs) No edit summary |
Killzone Kid (talk | contribs) No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 11: | Line 11: | ||
|descr= Sets intensity of light directly. [[setLightBrightness]] uses [[setLightIntensity]] internally, therefore avoid using [[setLightBrightness]] alltogether to avoid confusion | |descr= Sets intensity of light directly. [[setLightBrightness]] uses [[setLightIntensity]] internally, therefore avoid using [[setLightBrightness]] alltogether to avoid confusion | ||
{{Feature|informative|Intensity formula is as follows IF SET VIA [[setLightBrightness]]: <sqf>Intensity = Brightness ^ 2 * 2500;</sqf> | {{Feature|informative|Intensity formula is as follows (IF SET VIA [[setLightBrightness]]): <sqf>Intensity = Brightness ^ 2 * 2500;</sqf> | ||
<spoiler text="Test code"> | <spoiler text="Test code"> | ||
<sqf> | <sqf> | ||
| Line 51: | Line 51: | ||
|x1= <sqf>myLight setLightIntensity 4;</sqf> | |x1= <sqf>myLight setLightIntensity 4;</sqf> | ||
|seealso= [[setLightAmbient]] [[setLightColor]] [[lightAttachObject]] [[lightDetachObject]] [[setLightBrightness]] [[setLightAttenuation]] [[setLightUseFlare]] [[setLightFlareSize]] [[setLightFlareMaxDistance]] [[setLightDayLight]] | |seealso= [[setLightAmbient]] [[setLightColor]] [[lightAttachObject]] [[lightDetachObject]] [[setLightBrightness]] [[setLightAttenuation]] [[setLightUseFlare]] [[setLightFlareSize]] [[setLightFlareMaxDistance]] [[setLightDayLight]] [[getLightInfo]] | ||
}} | }} | ||
Latest revision as of 23:15, 5 November 2025
Description
- Description:
- Sets intensity of light directly. setLightBrightness uses setLightIntensity internally, therefore avoid using setLightBrightness alltogether to avoid confusion
- 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 getLightInfo
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
- 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: