getLightingAt: Difference between revisions
BrettMayson (talk | contribs) mNo edit summary |
BrettMayson (talk | contribs) mNo edit summary |
||
| Line 18: | Line 18: | ||
* ambientLightBrightness: [[Number]] | * ambientLightBrightness: [[Number]] | ||
* dynamicLightColor: [[Color|Color (RGB)]] | * dynamicLightColor: [[Color|Color (RGB)]] | ||
* | * dynamicLightBrightness: [[Number]] | ||
|x1= <sqf>getLightingAt player; // returns [[1,1,1], 0.5, [0,0,0], 0]</sqf> | |x1= <sqf>getLightingAt player; // returns [[1,1,1], 0.5, [0,0,0], 0]</sqf> | ||
Latest revision as of 02:33, 3 January 2026
Description
- Description:
- Gets provided object's lighting information.
- Groups:
- Lights
Syntax
- Syntax:
- getLightingAt obj
- Parameters:
- obj: Object
- Return Value:
- Array with [ambientLightColor, ambientLightBrightness, dynamicLightColor, dynamicLightBrightness]
- ambientLightColor: Color (RGB)
- ambientLightBrightness: Number
- dynamicLightColor: Color (RGB)
- dynamicLightBrightness: Number
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- getLighting Light Source Tutorial
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note