I'm making a game and I was wondering how I could get it so a door constantly opens and closes by itself. It would be nice if it would have that little squeek as the door opens and closes and have no "press enter to use" thing. I tried modifying the dooruse but it didn't work.
Thanks.
----Edit----
I got it to work and it works great!
It starts opening and closing once you get so close to it but you can always change the distance you need to be near it.
Well, I guess I'll give it to you guys.
Here it is:
;Artificial Intelligence Script
;Header
desc = Use Door (Push Open and Push Closed)
;Triggers
:state=0:state=10
:state=10,plrdistwithin=90: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=90:activate=0
:state=2,activated=0:state=3,sound=$1,colon
:state=3:decframe=0
:state=3,frameatstart=0:state=10,setframe=0
;End of Script
It's also in the attacnments box.
Just save it in the scriptbank.