;Artificial Intelligence Script
; by xplosys
;INSTRUCTIONS
; In the lines state=10 through state=13
; change the scancodekeypressed=X value
; to change the access code.
;
; The code is only required to open and
; not to close. For instance, if used to ; open a door, the access code will open
; the door and the enter key will close
; it again.
;Header
desc = Switch Activate (enter pass code)
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\enteraccesscode.tga,hudname=useswitchprompt,hudhide=1,hudmake=display,state=10
:plrdistwithin=50:hudshow=useswitchprompt,hudfadeout=useswitchprompt
:state=10,plrdistwithin=50,scancodekeypressed=75:state=11,sound=audiobank\switches\press.wav
:state=11,plrdistwithin=50,scancodekeypressed=81:state=12,sound=audiobank\switches\press.wav
:state=12,plrdistwithin=50,scancodekeypressed=73:state=13,sound=audiobank\switches\press.wav
:state=13,plrdistwithin=50,scancodekeypressed=75:state=14,sound=audiobank\switches\press.wav :state=14:state=1,plrsound=$0,activateifused=1,alttexture=1
:state=1,plrusingaction=0:state=2 :state=2,plrdistwithin=50,plrusingaction=1:state=3,plrsound=$1,activateifused=0,alttexture=0
:state=3,plrusingaction=0:state=10
;End of Script
DARKEST NIGHTMARE
coming 2008