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 / how to make a door open without player pressing ENTER key

Author
Message
GraPix
User Banned
Posted: 27th Jul 2009 15:29
When i test my level, all the doors remains closed like normal... but, i want a specific door to stay open at start. How can this be done?

Your signature has been erased by a mod - please make it no larger than 999999999x999999999, thanks
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 27th Jul 2009 16:13
There are a few ways, depending on your ultimate goal. Does the door always need to be open and can't be closed? If so, just make the door entity static and position it in the open position.

Does it need to start open and can be closed with the enter key? If so, the easy way is to place a trigger zone on the player start marker that opens the door. Something like this...



You can also adjust the doors animation if needed.

Brian.

Lizzie Borden took an axe and gave her mother forty whacks.

fpsFREE - Contact Me
GraPix
User Banned
Posted: 28th Jul 2009 14:07
Quote: "the door always need to be open and can't be closed"


yes, this is exactly what i want. Thnx dude!

Your signature has been erased by a mod - please make it no larger than 999999999x999999999, thanks
SekoIdiootti
15
Years of Service
User Offline
Joined: 14th Mar 2009
Location: Finland
Posted: 31st Jul 2009 20:33 Edited at: 31st Jul 2009 20:34
@Xplosys: I don't think that script works. I tried it, but the door doesn't open... I mean, I didn't put it in the start, but so the door is closed, but when the player goes in a different place, the door opens.
So... What am I doing wrong?
Oh, and btw, should that script be the main of the door or the trigger? I'm using it for the trigger.

My username is finnish, and it translated to english is: "CrazyIdiot" or something.
Sandante
16
Years of Service
User Offline
Joined: 9th Sep 2008
Location: Dark World
Posted: 1st Aug 2009 15:03
i use this script. i dont know who made it.

Attachments

Login to view attachments
dark peanut
15
Years of Service
User Offline
Joined: 31st Dec 2008
Location: USA
Posted: 1st Aug 2009 17:25
Seko, did you put the name of the door in the "If used" field of the triggerzone? I know the script SanXL posted works because I've also used it before. I believe it goes in the door's main.fpi

dark peanut

Look for me on CoD4 online for PC. My username's Arbiquator (strange I know but it's the first thing that came to mind)

SekoIdiootti
15
Years of Service
User Offline
Joined: 14th Mar 2009
Location: Finland
Posted: 1st Aug 2009 20:06
Quote: "Seko, did you put the name of the door in the "If used" field of the triggerzone? I know the script SanXL posted works because I've also used it before. I believe it goes in the door's main.fpi"

Yes, I put the name in "if used".
I'll try the script SanXL posted.

My username is finnish, and it translated to english is: "CrazyIdiot" or something.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 2nd Aug 2009 12:58 Edited at: 2nd Aug 2009 13:01
This should do the trick:

Use this script instead of the "dooruse.fpi" script for the door that should start out open and be able to be closed by pressing ENTER.

Remove the state 2 and 3 lines if the door should remain open permanently (Not the most efficient way of doing that, but it's simple and easy).




The one and only,


Login to post a reply

Server time is: 2024-11-25 05:37:05
Your offset time is: 2024-11-25 05:37:05