Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Better doorkey script

Author
Message
Nue B
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: Indy
Posted: 11th Aug 2006 02:42
When my friends play the games I make they all say the same thing.
"I liked the game, but you messed up on the doors." They never know when they have the right keys because when they approach the door it says "Door locked. Requires a key." I finally came up with a quick fix to the problem and thought I'd share it with my fellow FPSC owners. I carefully combined the doorkey.fpi with the autodoor.fpi to create "HaveKey.fpi" a script that calls for a key until you collect it. Once you have the key the door becomes automated.
Use it and let me know what you think.



Nue B. or not Nue B. That is the question.
s4real
VIP Member
18
Years of Service
User Offline
Joined: 22nd Jul 2006
Location:
Posted: 11th Aug 2006 03:43
Nice little script that works well many thanx
Mr noob
18
Years of Service
User Offline
Joined: 6th Aug 2006
Location:
Posted: 11th Aug 2006 11:18
i have a script like that except it is locked door.
so when you go through the door once it is autodoor but when it closes it switches to a door that needs a key.
i used it to make it look like my prison guard had a key.
;Artificial Intelligence Script

;Header

desc = Auto Proximity Door and key (Open and Close)

;Triggers

:state=0,anywithin=75:state=1,setframe=0,sound=$0,
:state=1:incframe=0
:state=1,frameatend=0:state=2,coloff
:state=2,anyfurther=100:state=3,sound=$1,colon
:state=3:decframe=0
:state=3,frameatstart=0:state=4,setframe=0,

:state=4:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\lockeddoor.tga,hudname=keydoorprompt,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=60:hudshow=keydoorprompt,hudfadeout=keydoorprompt

:state=10,plrdistwithin=60,plrhaskey=1,plrusingaction=1:state=1,setframe=0,sound=$0
:state=5:incframe=0
:state=5,frameatend=0:state=6,coloff
:state=6,plrdistfurther=60:state=7,sound=$1,colon
:state=7:decframe=0
:state=8,frameatstart=0:state=10,setframe=0



;End of Script

sorry if all my post annoyed anyone, didn't know i was a hassle
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 11th Aug 2006 17:24
Good work Nue B.

Thanks.

Crazy Grandpa

Login to post a reply

Server time is: 2024-11-22 20:02:44
Your offset time is: 2024-11-22 20:02:44