I was trying to create a light script for my game. I wanted the lights to be on and shut off when you walk through the trigger zone. I want them to be off for a couple of seconds then come back on and go off again and go on then off.... Well here's the script it doesnt work. Can anyone help me fix my script.
Thanks in Advance
;Script by Hunter Studios
;Artificial Intelligence Script
;Header
desc = Lights Off
;Triggers
:state=0,lighton:state=1
:state=1:timergreater=10:lightoff,state=2
:state=2,timerstart:state=3
:state=3:timergreater=1245:lighton,state=4
:state=4,timerstart:state=5
:state=5:timergreater=200:lightoff,state=6
:state=6,timerstart:state=7
:state=7:timergreater=675:lighton,state=8
:state=8,timerstart:state=9
:state=9:timergreater=315:lightoff,state=10
:state=10,timerstart:state=11
:state=11:timergreater=500:lighton,state=12
:state=12,timerstart:state=13
:state=13:timergreater=200:lightoff,state=14
:state=14,timerstart:state=15
:state=15:timergreater=355:lighton,state=16
:state=16,timerstart:state=17
:state=17:timergreater=50:lightoff,state=18
:state=18,timerstart:state=19
:state=19:timergreater=250:lighton,state=20
:state=20,lighton:state=20
;End of Script