setLightIntensity: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|0.50 | |0.50 | ||
|gr1 = Lights | |gr1 = Lights | ||
|arg= local | |arg= local | ||
|eff= local | |eff= local | ||
| Sets intensity of light. | | Sets intensity of light. | ||
| light [[setLightIntensity]] value | | light [[setLightIntensity]] value | ||
|p1= light: [[Object]] | |p1= light: [[Object]] | ||
|p2= value: [[Number]] | |p2= value: [[Number]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>myLight [[setLightIntensity]] 4;</code> | |x1= <code>myLight [[setLightIntensity]] 4;</code> | ||
| [[setLightAmbient]], [[setLightColor]], [[lightAttachObject]], [[lightDetachObject]], [[setLightBrightness]], [[setLightAttenuation]], [[setLightUseFlare]], [[setLightFlareSize]], [[setLightFlareMaxDistance]], [[setLightDayLight]] | | [[setLightAmbient]], [[setLightColor]], [[lightAttachObject]], [[lightDetachObject]], [[setLightBrightness]], [[setLightAttenuation]], [[setLightUseFlare]], [[setLightFlareSize]], [[setLightFlareMaxDistance]], [[setLightDayLight]] | ||
| | | | ||
}} | }} | ||
Revision as of 11:10, 18 January 2021
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:
- setLightAmbientsetLightColorlightAttachObjectlightDetachObjectsetLightBrightnesssetLightAttenuationsetLightUseFlaresetLightFlareSizesetLightFlareMaxDistancesetLightDayLight
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
Notes
- Posted on Mar 24, 2014 - 23:37
- ffur2007slx2_5
- 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:
_light setLightIntensity 3000;// same as _light setLightBrightness 1;