Hi,
I'm trying to figure out, why my script isn't working. It should do two things:
1. alternate between two textures, to give the impression of flashing
2. after using the switch, moving the player to a win-zone.
While the second part, seems working, the first part isn't working at all. It just shows the alternate textures, without any flashing.
;Artificial Intelligence Script
;Header
desc = Use Switch (animated lever)
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pressentertouse.tga,hudname=useswitchprompt,hudhide=1,hudmake=display,state=10
:plrdistwithin=100:hudshow=useswitchprompt,hudfadeout=useswitchprompt
:state=10,plrdistwithin=1000:timerstart,ALTTEXTURE=1,state=11
:state=11,TIMERGREATER=500:ALTTEXTURE=0,state=12
:state=12,TIMERGREATER=1000:state=10
:state=10,plrdistwithin=100,plrusingaction=1:state=1,setframe=0,plrsound=$0,activateifused=1
:state=11,plrdistwithin=100,plrusingaction=1:state=1,setframe=0,plrsound=$0,activateifused=1
:state=12,plrdistwithin=100,plrusingaction=1:state=1,setframe=0,plrsound=$0,activateifused=1
:state=1:incframe=0
:state=1,frameatend=0:state=2
:state=2,plrusingaction=0:state=6
:state=6:suspend,coloff,state=7
:state=7:plrmoveto=Win Zone
;End of Script
Any help would be greatly appreciated.