setLightBrightness: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|game([0-9])= *([^ ]+) * +\|version([0-9])= *([^ ]+) * " to "|game$1=$2 |version$3=$4 ")
m (Some wiki formatting)
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:


|game3= arma2oa
|game3= arma2oa
|version3= 1.51
|version3= 1.50


|game4= tkoh
|game4= tkoh
Line 33: Line 33:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>myLight [[setLightBrightness]] 2;</code>
|x1= <sqf>myLight setLightBrightness 2;</sqf>


|seealso= [[setLightIntensity]] [[setLightAmbient]] [[setLightColor]] [[lightAttachObject]] [[lightDetachObject]] [[setLightAttenuation]] [[setLightUseFlare]] [[setLightFlareSize]] [[setLightFlareMaxDistance]] [[setLightDayLight]]
|seealso= [[setLightIntensity]] [[setLightAmbient]] [[setLightColor]] [[lightAttachObject]] [[lightDetachObject]] [[setLightAttenuation]] [[setLightUseFlare]] [[setLightFlareSize]] [[setLightFlareMaxDistance]] [[setLightDayLight]]
}}
}}


<dl class="command_description">
{{Note
 
|user= Feersum
<dt></dt>
|timestamp= 20061201164200
<dd class="notedate">Posted on Dec 1, 2006 - 16:42</dd>
|text= Light can be created with command [[createVehicleLocal]] with special vehicle class {{hl|"#lightpoint"}}<br>
<dt class="note">[[User:Feersum|Feersum]]</dt>
for example:
<dd class="note">
<sqf>
Light can be created with command [[createVehicleLocal]] with special vehicle class "#lightpoint"
_light = "#lightpoint" createVehicleLocal _posAGL;
 
_light setLightBrightness 1.0;
<br>for example:
_light setLightAmbient [0.0, 1.0, 0.0];
<code>_light = "#lightpoint" [[createVehicleLocal]] pos;
_light setLightColor [0.0, 1.0, 0.0];
_light [[setLightBrightness]] 1.0;
_light lightAttachObject [_object, [0,0,0]];
_light [[setLightAmbient]] [0.0, 1.0, 0.0];
</sqf>
_light [[setLightColor]] [0.0, 1.0, 0.0];
}}
_light [[lightAttachObject]] [_object, [0,0,0]];
</code>
</dl>

Latest revision as of 12:33, 25 April 2022

Hover & click on the images for description

Description

Description:
Set brightness of light.
Arma 3
This command is outdated. Use setLightIntensity instead.
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
Feersum - c
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]];