{"name":"diag_setLightNew","title":"diag setLightNew","type":"command","url":"https://community.bistudio.com/wiki/diag_setLightNew","revid":348341,"updated":"2023-11-08T12:59:48Z","groups":["Lights","Diagnostic"],"status":"ok","games":{"arma3":"1.82"},"since":"arma3 1.82","arma3_since":"1.82","description":"Overrides currently used scene lighting. The operand is config that is placed as a string (not file).\nThe changes may not be applied immediately, but can be forced by the call of simulWeatherSync.","syntaxes":[{"syntax":"diag_setLightNew config","params":[{"name":"config","type":"String","description":"config in string form","type_expr":"String"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"unary","right":{"text":"config"}}],"examples":[{"code":["diag_setLightNew \"sunOrMoon = 1; diffuse[] = { 0, 0, 0, 0 }; diffuseCloud[] = { 0, 0, 0, 0 }; ambient[] = { 0, 0, 0, 0 }; ... \";"]}],"see_also":["diag_lightNewLoad"],"notes":[{"user":"POLPOX","date":"2023-05-14T10:50:07Z","text":"The change is permanent (you can see the change even after you change the mission/terrain.) However, you can send an empty string to reset the lighting."}]}