Hello, I have tried to toy with this script and ended up with this, it works but the door closes too quickly before i am able to enter. i have the action keyy switched to Press F to open, but the scripts original key is the standard Enter key, could anyone please help me put this together correctly?
My version:
;Artificial Intelligence Script
;Header
desc = Use Door (Push Open and Push Closed) & Auto Close
;Triggers
:state=0:state=10
:state=10,plrdistwithin=60:fpgcrawtext=Press F ,fpgcrawtextsize=17,fpgcrawtextfont=Times New Roman,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=70
: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=100:activate=0
:state=2,activated=0:state=3,sound=$1,colon
:state=3:decframe=0
:state=3,frameatstart=0:state=5,setframe=0
:state=5:none
;End of Script
Heres the script that closes and locks the door behind player after entering
;Artificial Intelligence Script
;Header
desc = Use Door (Push Open and Push Closed) & Auto Close
;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: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=100:activate=0
:state=2,activated=0:state=3,sound=$1,colon
:state=3:decframe=0
:state=3,frameatstart=0:state=5,setframe=0
:state=5:none
;End of Script
Heres the F to Open Script
;Artificial Intelligence Script
;Header
desc = Use Door (Push Open and Push Closed)
;Triggers
;keypressed=33 1 : F is pressed
;keypressed=18 1 : E is pressed
:state=0:state=10
;change here the fpgcrawtest="What you want to read ingame"
:state=10,plrdistwithin=60:fpgcrawtext=Press F ,fpgcrawtextsize=17,fpgcrawtextfont=Times New Roman,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=70
;keypressed="key code" 1
:state=10,plrdistwithin=60,keypressed=33 1:state=1,setframe=0,sound=$0
:state=1:incframe=0
:state=1,frameatend=0:state=2,coloff
;keypressed="key code" 1
:state=2,plrdistwithin=60,keypressed=33 1:state=3,sound=$1,colon
:state=3:decframe=0
:state=3,frameatstart=0:state=10,setframe=0
;End of Script
I guess im asking if anyone could fuse these two scripts together to make the F to Open work, while the door closing script acts as it should. I have tried without success more than my patience can handle at the moment lol.
http://uimg.ngfiles.com/banners/3880/3880701.jpg