HI,
I have recently been learning scripting and this is the first script I have attempted from scratch.
;Artificial Intelligence Script
;Header
desc = Alarm Light Flash
;Triggers
:state=0:activateifused=1,timerstart,state=1
:state=1,timergreater=750:state=2
:state=2:activateifused=1,timerstart,state=3
:state=3,timergreater=300:state=0
;End of Script
The idea is for the script to activate the ifused condition on a timer. The ifused field is then given the name of the light to turn the light on and off. I have tested the timer with lighton/lightoff actions applying the script directly to the light. this works fine. The final script will then be applied to an alarm entity.
My problem is that when I run this script the light just stays constantly on.
I am sure this is probably just a stupid newb problem but I would appreciate any help.
Thanks for your help,
SSP