I wrote this script:
function regF()
SetAmbientLight(0, "/Lights/_(AmbientLight)/Tests/Night.xdb#xpointer(/AmbientLight)", nil, 0);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "reg", "regF");
Nothing appears in the console, but the lighting doesn't change. What's the error?
Have you tried changing the word "nil" to "false"?