setLightConePars: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([a-zA-Z0-9_, ]+) +\[\[([a-zA-Z0-9_]+)\]\] +(\[[a-zA-Z0-9_, ]+\]);?<\/code>" to "<sqf>$1 $2 $3;</sqf>")
No edit summary
Line 27: Line 27:


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

Revision as of 08:26, 20 July 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 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:
_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];