{"name":"getLightingAt","title":"getLightingAt","type":"command","url":"https://community.bistudio.com/wiki/getLightingAt","revid":377785,"updated":"2026-01-03T01:33:52Z","groups":["Lights"],"status":"ok","games":{"arma3":"2.00"},"since":"arma3 2.00","arma3_since":"2.00","description":"Gets provided object's lighting information.\n\n> [!NOTE]\n> The command will use local player's night vision state to determine whether to include IR lights in the result or not.\n> On a dedicated server, headless client or if the player is null, the night vision state will always be off.","syntaxes":[{"syntax":"getLightingAt obj","params":[{"name":"obj","type":"Object","type_expr":"Object"}],"returns":{"type":"Array","type_expr":"Array","description":"with [ambientLightColor, ambientLightBrightness, dynamicLightColor, dynamicLightBrightness]\n- ambientLightColor: Color (RGB) - ambientLightBrightness: Number - dynamicLightColor: Color (RGB) - dynamicLightBrightness: Number","text":"Array with [ambientLightColor, ambientLightBrightness, dynamicLightColor, dynamicLightBrightness]\n\n- ambientLightColor: Color (RGB)\n- ambientLightBrightness: Number\n- dynamicLightColor: Color (RGB)\n- dynamicLightBrightness: Number"},"form":"unary","right":{"text":"obj"}}],"examples":[{"code":["getLightingAt player; // returns [[1,1,1], 0.5, [0,0,0], 0]"]},{"code":["getLightingAt player params [\"_ambientLightColour\", \"_ambientLightBrightness\", \"_dynamicLightColour\", \"_dynamicLightBrightness\"];"]}],"see_also":["getLighting","Light Source Tutorial"]}