I call this script dooruseauto.fpi but you can name it what ever its a simple mix of the doorkey.fpi and the dooruse.fpi I wanted doors to close behind me and I am still learning .fpi so I thought this would be an easy fix hope you dont think I'm being to corny I did use the thread search but there where so many door scripts I didnt find what I was looking for in a hurry so I came up with my own in the time that it would have taken me to read threw everybody elses ......side note I really do appreciate everybody on here and how they are willing to share their most needed info and mods and such any way here it is just copy the following code to notebook and change the file ext to .fpi after the name that you give this code paste it into your scriptbank or where ever you like and once again please comment on any tips you might have for someone new to coding....thnx and enjoy
wayne davis rocks
;Artificial Intelligence Script
;Header
desc = Just like normal use door but will close behind you automatically
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pressentertouse.tga,hudname=usedoorprompt,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=60:hudshow=usedoorprompt,hudfadeout=usedoorprompt
:state=10,plrdistwithin=60,plrusingaction=1:state=1,setframe=0,sound=$0
:state=1:incframe=0
:state=1,frameatend=0:state=2,coloff
:state=2,plrdistfurther=60:state=3,sound=$1,colon
:state=3:decframe=0
:state=3,frameatstart=0:state=10,setframe=0
;End of Script
Wayne Davis Band