There is a way. I found it a few weeks ago.
Place down a 'remote door' and then a switch, change the 'ifused' part on the switch to 'remote door'.
Now add this script to the main switch script.
; Artifical Intelligence Script
; Header
desc = Switch activated (enter pass code=random)
; Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=This_is_the_pathway_to_the_hud(C:/Program_Files-ect,ect.change,hudname=useswitchprompt,hudhide=1,hudmake=dispaly,state=10
:plrdistwithin=50:hudshow=useswitchprompt,hudfadeout=useswitchprompt
:state=10,plrdistwithin=50,scancodekeypressed=Anynumber:state=11,sound=audiobank/switches/press.wav
:state=11,plrdistwithin=50,scancodekeypressed=Anynumber:state=12,sound=audiobank/switches/press.wav
:state=12,plrdistwithin=50,scancodekeypressed=Anynumber:state=13,sound=audiobank/switches/press.wav
:state=13,plrdistwithin=50,scancodekeypressed=Anynumber:state=14,sound=audiobank/switches/press.wav
:state=14,plrdistwithin=50,scancodekeypressed=Anynumber:state=15,sound=audiobank/switches/press.wav
:state=15: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
Change the any number bit, look at picture for help, to whatever you want and change the 'This_is_the_pathway_to_the_hud(C:/Program_Files-ect,ect.change' bit to the correct pathway.
enjoy!