setLightBrightness: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Command " to "{{RV|type=command ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(12 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma1 | |game1= arma1 | ||
|version1= 1.00 | |||
|1.00 | |game2= arma2 | ||
|version2= 1.00 | |||
|gr1 = Lights | |game3= arma2oa | ||
|version3= 1.50 | |||
|game4= tkoh | |||
|version4= 1.00 | |||
|game5= arma3 | |||
|version5= 0.50 | |||
|gr1= Lights | |||
|arg= local | |arg= local | ||
Line 11: | Line 22: | ||
|eff= local | |eff= local | ||
| Set brightness of light. | |descr= Set brightness of light. | ||
{{Feature|arma3|This command is outdated. Use [[setLightIntensity]] instead.}} | |||
| light [[setLightBrightness]] brightness | |s1= light [[setLightBrightness]] brightness | ||
|p1= light: [[Object]] | |p1= light: [[Object]] | ||
Line 19: | Line 31: | ||
|p2= brightness: [[Number]] | |p2= brightness: [[Number]] | ||
| [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>myLight setLightBrightness 2;</sqf> | ||
| [[setLightAmbient]] | |seealso= [[setLightIntensity]] [[setLightAmbient]] [[setLightColor]] [[lightAttachObject]] [[lightDetachObject]] [[setLightAttenuation]] [[setLightUseFlare]] [[setLightFlareSize]] [[setLightFlareMaxDistance]] [[setLightDayLight]] | ||
}} | }} | ||
{{Note | |||
|user= Feersum | |||
|timestamp= 20061201164200 | |||
|text= Light can be created with command [[createVehicleLocal]] with special vehicle class {{hl|"#lightpoint"}}<br> | |||
for example: | |||
Light can be created with command [[createVehicleLocal]] with special vehicle class "#lightpoint" | <sqf> | ||
_light = "#lightpoint" createVehicleLocal _posAGL; | |||
<br>for example: | _light setLightBrightness 1.0; | ||
< | _light setLightAmbient [0.0, 1.0, 0.0]; | ||
_light | _light setLightColor [0.0, 1.0, 0.0]; | ||
_light | _light lightAttachObject [_object, [0,0,0]]; | ||
_light | </sqf> | ||
_light | }} | ||
</ | |||
Latest revision as of 12:33, 25 April 2022
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 01, 2006 - 16:42 (UTC)
-
Light can be created with command createVehicleLocal with special vehicle class "#lightpoint"
for example:_light = "#lightpoint" createVehicleLocal _posAGL; _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]];
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