getLightingAt: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix camelCase)
mNo edit summary
Line 4: Line 4:


|version= 1.99
|version= 1.99
|gr1 = Lights |GROUP1=


|descr= Gets provided object's lighting information.
|descr= Gets provided object's lighting information.
Line 17: Line 19:
* dynamiclightBrightness: [[Number]]
* dynamiclightBrightness: [[Number]]


|x1= <!--<code>[[getLightingAt]] [[player]]; {{cc|returns [<nowiki/>[1,1,1], 0.5, [0,0,0], 0]}}</code>-->
|x1=<code>[[getLightingAt]] [[player]]; {{cc|returns [<nowiki/>[1,1,1], 0.5, [0,0,0], 0]}}</code>


|seealso= [[getLighting]] [[:Category:Command Group: Lights|Command Group: Lights]] [[Lightpoint Tutorial]]
|seealso= [[getLighting]] [[:Category:Command Group: Lights|Command Group: Lights]] [[Lightpoint Tutorial]]
Line 29: Line 31:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Command Group: Lights]]

Revision as of 13:30, 18 September 2020

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version |?]]
Hover & click on the images for description

Description

Description:
Gets provided object's lighting information.
Groups:
Lights

Syntax

Syntax:
getLightingAt obj
Parameters:
obj: Object
Return Value:
Array to format [ambientLightColor, ambientLightBrightness, dynamicLightColor, dynamicLightBrightness]:

Examples

Example 1:
getLightingAt player; // returns [[1,1,1], 0.5, [0,0,0], 0]

Additional Information

See also:
getLighting Command Group: Lights Lightpoint Tutorial

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

[[Category:Introduced with arma3dev version ]][[ Category: arma3dev: New Scripting Commands | GETLIGHTINGAT]][[ Category: arma3dev: Scripting Commands | GETLIGHTINGAT]]

Bottom Section