setLightConePars: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Some wiki formatting)
 
(9 intermediate revisions by 2 users not shown)
Line 10: Line 10:
|eff= local
|eff= local


|descr= Sets the lightpoint (directional light {{ic|#lightreflector}})'s cone params.
|descr= Sets the lightpoint (directional light {{hl|#lightreflector}})'s cone params.


|s1= lightReflector [[setLightConePars]] [outerAngle, innerAngle, fadeCoef]
|s1= lightReflector [[setLightConePars]] [outerAngle, innerAngle, fadeCoef]


|p1= lightReflector : [[Object]] - Object of class {{ic|#lightreflector}})
|p1= lightReflector: [[Object]] - object of class {{hl|#lightreflector}})


|p2= outerAngle: [[Number]]
|p2= outerAngle: [[Number]]
Line 24: Line 24:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>_light [[setLightConePars]] [90, 45, 1];</code>
|x1= <sqf>_light setLightConePars [90, 45, 1];</sqf>


|seealso= [[setLightColor]] [[setLightAmbient]] [[setLightBrightness]] [[lightAttachObject]] [[lightDetachObject]] [[setLightIntensity]] [[setLightAttenuation]], [[setLightUseFlare]], [[setLightFlareSize]], [[setLightFlareMaxDistance]], [[setLightDayLight]], [[setLightIR]]
|seealso= [[setLightColor]] [[setLightAmbient]] [[setLightBrightness]] [[lightAttachObject]] [[lightDetachObject]] [[setLightIntensity]] [[setLightAttenuation]] [[setLightUseFlare]] [[setLightFlareSize]] [[setLightFlareMaxDistance]] [[setLightDayLight]] [[setLightIR]]
}}
 
{{Note
|user= Waffle SS.
|timestamp= 20220720072612
|text= Responds to [[setLightIntensity]], '''not''' [[setLightBrightness]]:
<sqf>
private _light = "#lightreflector" createVehicleLocal (player modelToWorld [0, 0.5, 0]);
_light setLightIntensity 3000;
_light setLightAmbient [0, 1, 0];
_light setLightColor [0, 1, 0];
_light setLightConePars [45, 10, 1];
</sqf>
}}
}}

Latest revision as of 00:42, 12 February 2024

Hover & click on the images for description

Description

Description:
Sets the lightpoint (directional light #lightreflector)'s cone params.
Groups:
Lights

Syntax

Syntax:
lightReflector setLightConePars [outerAngle, innerAngle, fadeCoef]
Parameters:
lightReflector: Object - object of class #lightreflector)
outerAngle: Number
innerAngle: Number
fadeCoef: Number
Return Value:
Nothing

Examples

Example 1:
_light setLightConePars [90, 45, 1];

Additional Information

See also:
setLightColor setLightAmbient setLightBrightness lightAttachObject lightDetachObject setLightIntensity setLightAttenuation setLightUseFlare setLightFlareSize setLightFlareMaxDistance setLightDayLight setLightIR

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
Waffle SS. - c
Posted on Jul 20, 2022 - 07:26 (UTC)
Responds to setLightIntensity, not setLightBrightness:
private _light = "#lightreflector" createVehicleLocal (player modelToWorld [0, 0.5, 0]); _light setLightIntensity 3000; _light setLightAmbient [0, 1, 0]; _light setLightColor [0, 1, 0]; _light setLightConePars [45, 10, 1];