Taken from fpsFREE.com
;Artificial Intelligence Script
; by xplosys
;You should set the ambiance settings in the first "state=0"
;line to whatever your game settings are, or just let the
;trigger zone set the levels ambiance.
;Goes dark when player steps in zone. Change the numbers to suite.
;Header
desc = Dark in Zone
;Triggers
:state=0,plrwithinzone=0:ambience=250,ambiencered=250,ambienceblue=250,ambiencegreen=250
:state=0,plrwithinzone=1:ambience=0,ambiencered=0,ambienceblue=0,ambiencegreen=0
;End of Script
Assign this to a zone and make it the size of the area you want to be dark.
The first state=0 line is for when the player is not in the zone. You should set the values to whatever your game settings are so that when the player leaves the zone, the lighting goes back to what it was.
Also, if you only wanted it to happen once you could destroy the zone after one use.
;Artificial Intelligence Script
; by xplosys
;You should set the ambiance settings in the "state=1"
;line to whatever your game settings are, or just let the
;trigger zone set the levels ambiance.
;Goes dark when player steps in zone. Change the numbers to suite.
;Header
desc = Dark in Zone Once
;Triggers
:state=0,plrwithinzone=1:ambience=0,ambiencered=0,ambienceblue=0,ambiencegreen=0,state=1
:state=1,plrwithinzone=0:ambience=250,ambiencered=250,ambienceblue=250,ambiencegreen=250,suspend
;End of Script
In this case you would set the values of state=1 to whatever your game settings are so that when the player leaves the zone, the lighting goes back to what it was.
Best.