getLightingAt: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "Color" to "Color (RGB)") |
||
Line 16: | Line 16: | ||
* ambientLightColor: [[Color|Color RGB]] | * ambientLightColor: [[Color|Color RGB]] | ||
* ambientLightBrightness: [[Number]] | * ambientLightBrightness: [[Number]] | ||
* dynamicLightColor: [[Color]] | * dynamicLightColor: [[Color|Color (RGB)]] | ||
* dynamiclightBrightness: [[Number]] | * dynamiclightBrightness: [[Number]] | ||
Revision as of 14:43, 16 October 2020
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]:
- ambientLightColor: Color RGB
- ambientLightBrightness: Number
- dynamicLightColor: Color (RGB)
- dynamiclightBrightness: Number
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]]