getLightingAt: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Color" to "Color (RGB)")
m (Text replacement - "1.99" to "2.00")
Line 3: Line 3:
|game1= arma3dev
|game1= arma3dev


|version= 1.99
|version= 2.00


|gr1 = Lights |GROUP1=
|gr1 = Lights |GROUP1=

Revision as of 14:45, 16 October 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 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