So i was messing with some Light markers, specifically the red one, and I wanted the light to flicker on and off. So i selected light2.fpi for it's Main. light2.fpi says it is should flicker on and off, but it does not. Here is it's code.
;Artificial Intelligence Script
;Header
desc = Light Flicker
;Triggers
:state=0:state=1
:state=1,activated=1:state=2
:state=1,random=10:state=2
:state=1:lighton,state=0
:state=2:lightoff,state=0
;End of Script
I did not design this script, it came with the game ( I have version 1.17 or whatever the latest non-Beta is).
My eventual hope is to have it so that a character will activate the red light when he is about to die, like an Fire Alarm or something like that. I think I know how to do this, but the problem is with the light's scripts. It just stays on. Even the lightoff.fpi file (which I did not design) has the light start on.
In case you want to look, here's lightoff.fpi
;Artificial Intelligence Script
;Header
desc = Light Toggle (Off By Default)
;Triggers
:state=0:state=2
:state=1,activated=1:state=2,lighton
:state=2,activated=0:state=1,lightoff
;End of Script
Any help is always greatly appreciated!!