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 / Door opened by key and stays open

Author
Message
TZap
19
Years of Service
User Offline
Joined: 29th Aug 2005
Location:
Posted: 13th Nov 2007 22:53
If you want a door to stay open after opening with a key, copy the doorkey script and remove the line that begins with state=2

Simple but it does make a difference to the game I am doing.
Dr Parsnips
17
Years of Service
User Offline
Joined: 14th Jul 2007
Location: London
Posted: 13th Nov 2007 23:43
thanks just what i was looking for!

HMMMMMMM
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 14th Nov 2007 06:32
...this works well!


Own It, Or Get Owned...
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 14th Nov 2007 22:47
Nice, realistic and useful.

Best.

I'm sorry, my answers are limited. You must ask the right question.

TZap
19
Years of Service
User Offline
Joined: 29th Aug 2005
Location:
Posted: 14th Nov 2007 23:39
Thanks for the comments guys. I am not the greatest expert on scripting but I like tweaking the existing ones.
Inspire
17
Years of Service
User Offline
Joined: 23rd Dec 2006
Location: Rochester, NY
Posted: 16th Nov 2007 01:41
Thanks, that saved me some time.

TZap
19
Years of Service
User Offline
Joined: 29th Aug 2005
Location:
Posted: 16th Nov 2007 21:24 Edited at: 16th Nov 2007 21:26
I've modified the script slightly.

This time the door is open at the start and will close if triggered by a trigger zone. Add another different trigger elsewhere to open it again.

I am going to use completing a task or killing a boss to reopen the door in place of the last trigger zone.
;Artificial Intelligence Script

;Header

desc = Remote Controlled Door (Open initially and Closed by trigger then opened again by another trigger)

;Triggers

:state=0:state=1,setframe=0,sound=$0
:state=1:incframe=0
:state=1,frameatend=0:state=2,coloff


:state=2,activated=1:state=3,sound=$1,colon
:state=3:decframe=0
:state=3,frameatstart=0:setframe=0,state=4,activate=0


:state=4,activated=1:state=5,setframe=0,sound=$0
:state=5:incframe=0
:state=5,frameatend=0:state=6,coloff

;End of Script
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 19th Nov 2007 23:03
...cool effect. I like this one. Setting up the player is really easy with this treatment...


Own It, Or Get Owned...

Login to post a reply

Server time is: 2024-11-24 01:19:01
Your offset time is: 2024-11-24 01:19:01