Posted: 12th Sep 2007 16:26
An alarm script : if u're in zone a flashlight and sound start, just search an activate button for stop it !
Thanks to bobyones for complète my script.
;Artificial Intelligence Script
;Header
desc = Alarm zone create by funnny modified by bobyones
;Triggers
:state=0,activated=0,plrdistwithin=100:state=1,setframe=0
:state=0,activated=1:state=12
:state=1:sound=audiobank\atmos\alarmhum.wav,timerstart,state=2
:state=2,timergreater=750:state=3
:state=3:LightRange=300,LightRed=255,LightGreen=100,LightBlue=90,timerstart,state=4
:state=4,timergreater=300:state=5
:state=5:LightRange=300,LightRed=255,LightGreen=90,LightBlue=80,timerstart,state=6
:state=6,timergreater=250:state=7
:state=7:LightRange=400,LightRed=255,LightGreen=70,LightBlue=60,timerstart,state=8
:state=8,timergreater=100:state=9
:state=9,activated=1:state=12
:state=9,activated=0:state=1
:state=12:Lightoff=1,suspend
;End of Script
Okey : put dynamic light in zone, put this script on mainscript, put a button, at 'if used' => Light (or name of the dynamic light)