;Artificial Intelligence Script

;Header

desc          = Switch Activate (toggle on and off)

;Triggers

:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\hand.png,hudname=useswitchprompt,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=60:hudshow=useswitchprompt
:state=10,plrdistfurther=61:hudunshow=useswitchprompt

:state=10,plrdistwithin=60,plrusingaction=1:state=1,plrsound=$0,activateifused=1,alttexture=1,hudunshow=useswitchprompt
:state=1,plrusingaction=0:state=2
:state=2:none

;End of Script
