frenchpapa Yes, easy to do. By chance are you using Black Ice mod? If so there is a command to make this easy.
"entitywithin=x y" X is the name of the entity, Y is the distance within. Works like a charm
I stuck it into the "door_autoclose.fpi" script and it works great. I used an unarmed character and waypoints to follow.
I could go thru the door, then the character would also open door. Just add the name of the entity where noted.
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pressentertouse.png,hudname=usedoorprompt,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=60:hudshow=usedoorprompt,hudfadeout=usedoorprompt
:state=10,entitywithin=NAME OF YOUR ENTITY 65:activate=2
:state=10,plrdistwithin=60,plrusingaction=1:activate=2
:state=10,activated=2:state=1,setframe=0,sound=$0
:state=1:incframe=0
:state=1,frameatend=0:state=2,coloff
:state=2,plrdistwithin=60,plrusingaction=1:activate=0
;RICKS Auto-close feature (for all USE doors)
:state=2,anyfurther=65:activate=0
:state=2,activated=0:state=3,sound=$1,colon
:state=3:decframe=0
:state=3,frameatstart=0:state=10,setframe=0
If your not using Black Ice, then using the "triggerzone" method would work best.
My games never have bugs. They just develop random features..
Lots and lots of random features...