Alright, I finished
Door
;Artificial Intelligence Script
;Header
desc = Guard door script
;Triggers
:state=0,activated=1:incframe=1
:state=0,frameatend=1:state=1,coloff
:state=1,activated=0:decframe=0
:state=1,frameatstart=1:state=0,colon
Camera
;Artificial Intelligence Script
;Header
desc = Security camera script
;Triggers
:state=0,plrdistwithin=200:state=1
:state=0,shotdamage=1:state=3
:state=1:settargetname=guard,activatetarget=1,settargetname=normlights,activatetarget=1,settargetname=redlights,activatetarget=1,settargetname=guarddoor,activatetarget=1,timerstart,state=2
:state=2,timergreater=20000:settargetname=normlights,activatetarget=0,settargetname=redlights,activatetarget=0,settargetname=guarddoor,activatetarget=0,state=0
:state=3:timerstart
:state=3,timergreater=10000:state=0
Camera destroy script
;Artificial Intelligence Script
;Header
desc = camera destry script
;Triggers
:state=0:state=1
:state=1:setalphafade=100,settargetname=guard,activatetarget=1,settargetname=normlights,activatetarget=1,settargetname=redlights,activatetarget=1,settargetname=guarddoor,activatetarget=1,timerstart,state=2
:state=2,timergreater=20000:settargetname=normlights,activatetarget=0,settargetname=redlights,activatetarget=0,settargetname=guarddoor,activatetarget=0,destroy
Guard appear Script
;Artificial Intelligence Script
;Header
desc = Alarm guards
;Triggers
:state=0,activated=1:setalphafade=0,runfpidefault=1
Alarm light
;Artificial Intelligence Script
;Header
desc = Alarm light script
:state=0:lightoff,state=1
:state=1,activated=1:lighton,state=2
:state=2,activated=0:state=0
regular light
;Artificial Intelligence Script
;Header
desc = Regular light script
:state=0:lighton,state=1
:state=1,activated=1:lightoff,state=2
:state=2,activated=0:state=0
There... all done
-edit- my script assumes camera is a character, without entity health modifiers, I saw no concievable way of checking to see if the cam took damage, so I just used shotdamage which is internal for characters
I love Jenkins forever :p
There is nothing to fear except fear itself... and FPSC bugs.