setLightBrightness: Difference between revisions
Jump to navigation
Jump to search
(Added deprecation warning) |
m (formatting) |
||
Line 4: | Line 4: | ||
|version1= 1.00 | |version1= 1.00 | ||
|game2= arma2 | |||
|version2= 1.00 | |||
|game3= arma2oa | |||
|version3= 1.51 | |||
|game4= tkoh | |||
|version4= 1.00 | |||
|game5= arma3 | |||
|version5= 0.50 | |||
|gr1= Lights | |gr1= Lights | ||
Line 12: | Line 28: | ||
|descr= Set brightness of light. | |descr= Set brightness of light. | ||
{{Feature| | {{Feature|arma3|This command is outdated. Use [[setLightIntensity]] instead.}} | ||
|s1= light [[setLightBrightness]] brightness | |s1= light [[setLightBrightness]] brightness | ||
Line 43: | Line 59: | ||
<dt class="note">[[User:ffur2007slx2_5|ffur2007slx2_5]]<dd class="note">In {{arma3}} ver1.14 [[setLightBrightness]] will overwrite the previous effect processed by [[setLightIntensity]] on the same light source, vice versa. And both of them currently play the same role on brightness, for example: <code>_light [[setLightBrightness]] 1;// same as _light [[setLightIntensity]] 3000;</code> | <dt class="note">[[User:ffur2007slx2_5|ffur2007slx2_5]]<dd class="note">In {{arma3}} ver1.14 [[setLightBrightness]] will overwrite the previous effect processed by [[setLightIntensity]] on the same light source, vice versa. And both of them currently play the same role on brightness, for example: <code>_light [[setLightBrightness]] 1;// same as _light [[setLightIntensity]] 3000;</code> | ||
</dl> | </dl> | ||
Revision as of 23:13, 1 June 2021
Description
- Description:
- Set brightness of light.
- Groups:
- Lights
Syntax
- Syntax:
- light setLightBrightness brightness
- Parameters:
- light: Object
- brightness: Number
- Return Value:
- Nothing
Examples
- Example 1:
myLight setLightBrightness 2;
Additional Information
- See also:
- setLightIntensity setLightAmbient setLightColor lightAttachObject lightDetachObject 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 Dec 1, 2006 - 16:42
- Feersum
-
Light can be created with command createVehicleLocal with special vehicle class "#lightpoint"
for example:_light = "#lightpoint" createVehicleLocal pos; _light setLightBrightness 1.0; _light setLightAmbient [0.0, 1.0, 0.0]; _light setLightColor [0.0, 1.0, 0.0]; _light lightAttachObject [_object, [0,0,0]];
- Posted on Mar 24, 2014 - 23:27
- ffur2007slx2_5
- In Arma 3 ver1.14 setLightBrightness will overwrite the previous effect processed by setLightIntensity on the same light source, vice versa. And both of them currently play the same role on brightness, for example:
_light setLightBrightness 1;// same as _light setLightIntensity 3000;
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Lights
- Scripting Commands: Local Effect