setLightIntensity: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(20 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|version1= 0.50 | |||
|0.50 | |||
|gr1= Lights | |gr1= Lights | ||
Line 11: | Line 10: | ||
|eff= local | |eff= local | ||
| Sets intensity of light. | |descr= Sets intensity of light. | ||
| light [[setLightIntensity]] value | |s1= light [[setLightIntensity]] value | ||
|p1= light: [[Object]] | |p1= light: [[Object]] | ||
Line 19: | Line 18: | ||
|p2= value: [[Number]] | |p2= value: [[Number]] | ||
| [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>myLight setLightIntensity 4;</sqf> | ||
|seealso= [[setLightAmbient]] | |seealso= [[setLightAmbient]] [[setLightColor]] [[lightAttachObject]] [[lightDetachObject]] [[setLightBrightness]] [[setLightAttenuation]] [[setLightUseFlare]] [[setLightFlareSize]] [[setLightFlareMaxDistance]] [[setLightDayLight]] | ||
}} | }} | ||
{{Note | |||
|user= ffur2007slx2_5 | |||
|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> | |||
}} |
Revision as of 10:52, 14 June 2022
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
- 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: