Quote: "I have switch based on switch3.fpi."
Use this then:
;Artificial Intelligence Script
;Header
desc = Use Switch (animated lever)
;Triggers
:state=0:activateifused=1
:state=0,frameatend=0:incframe=0
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pressentertouse.png,hudname=useswitchprompt,hudhide=1,hudmake=display,state=10
:plrdistwithin=100:hudshow=useswitchprompt,hudfadeout=useswitchprompt
:state=10,plrdistwithin=100,plrusingaction=1:state=1,plrsound=$1,activateifused=0
:state=1:decframe=0
:state=1,frameatstart=0:state=2,setframe=0
:state=2,plrusingaction=0:state=3
:state=3,plrdistwithin=100,plrusingaction=1:state=4,setframe=0,plrsound=$0,activateifused=1
:state=4:incframe=0
:state=4,frameatend=0:state=5
:state=5,plrusingaction=0:state=10
;End of Script