setLightConePars: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 ")
Line 26: Line 26:
|x1= <code>_light [[setLightConePars]] [90, 45, 1];</code>
|x1= <code>_light [[setLightConePars]] [90, 45, 1];</code>


|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]]
}}
}}

Revision as of 19:26, 20 January 2022

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 setLightFlareSizesetLightFlareMaxDistancesetLightDayLightsetLightIR

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