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 / Close door script.

Author
Message
The Nerd
19
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 17th Feb 2005 19:07 Edited at: 17th Feb 2005 19:19
Hi

I saw Jasuks script that made a door open if you used a trigger zone. Then i modified hes script so you can make a trigger zone close a door that you cannot open again.
I thought i want to share it. i have attached a zip file with this post that contains the open door script made by : JASUK and the script i modified so the door also can close.
@JASUK: If it`s not okay i also use you script to this then please email me : Kattenolle@hotmail.com and i will get it removed instantly.

Also i wanna make a little step-by-step user-guide on how to use it.

USER-GUIDE :

1. Download the fpi files(The zip file attached to this message contain them both) when you downloaded it make sure to extract the files before we move on to the next step.

2. Put both of the fpi files in the folder "fps creator/files/scriptbank/user"

3.Open fpsc and make a room using the segments.

4. Split up the room you just made by draw a wall.

5. Set a door in the wall you just made (Remember the door needs to be REMOTE. Right click on the door and rename it to "door1"(you rename it in the text box "NAME") then find the USE KEY and write "trigger zone" under there you find the IF USED there you write "door1" click "apply changes" . and then also remember to place the player start marker.

6.Place a trigger zone were you want(just make sure that the player can hit it and that the trigger zone it on the same side of the room as the player start marker) now right click on the trigger zone you just made. In the AI SCRIPTS section find MAIN and change the current ai script to the plrinzone_door.fpi (The script you downloaded in the zip file). Then find the IF USED and write "door1" now click "apply changes"

Now before we move on try to run the game and see if the door is opening when you hit the trigger zone. If it dosnt work please make sure you have followed the steps and done everything right before posting question about why it won`t work

It worked? good then lets move on:

7. Place a new trigger zone on the other side of the door so the player will hit it when he just entered the room. right click on the trigger zone you just placed and find the AI SCRIPTS section now change the MAIN to closedoor.fpi(The script that you should have placed in the user folder with the other script) then in the same section find the IF USED and write "door1" then click "apply changes"

Thats it! Now when you run the game you should be able to hit the first trigger zone that will open the door then when you in the next room the trigger second trigger zone should close the door so you can`t open it again
If it dosn`t work make sure you have followed the steps right if it still dosn`t work please feel free to post a question.

Have fun with the scripts!


Regards The Nerd


looking for Royalty free 3D objects?
then Check PanzerGames at this link : http://www.freewebs.com/panzergames

Attachments

Login to view attachments
Freddy 007
19
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 17th Feb 2005 19:16 Edited at: 17th Feb 2005 19:20
cool enough. I just have one thing:

Quote: "3.Open fpsc and make a room using the segment editor."


If I havent misunderstood anything, the segment editor is the one that allows you to make your own segments? Isnt it easier to make rooms with segments thats already made? Never mind....
But nice explanation.

I am already using jasuk70's door-scripts, and they work fine

[EDIT] Never mind what I said about the segment editor, I see you've corrected it


Check out PanzerGames at: http://www.freewebs.com/panzergames
æ ø å
The Nerd
19
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 17th Feb 2005 19:20
Sorry my mistake i have changed it now.


looking for Royalty free 3D objects?
then Check PanzerGames at this link : http://www.freewebs.com/panzergames
jasuk70
21
Years of Service
User Offline
Joined: 3rd Dec 2002
Location: Hemel Hempstead
Posted: 17th Feb 2005 19:33
I managed to do it by modifying the door init script so that when it became un-dormant it opened. In the movie you can just spot it opening when you come round the corner . Then i modified the door so that when activated it closed the door, but the method with triggering the door to open somewhere way out of site is probably a better simpler solution. As long as you modify the door entity so that it doesnt have any open sounds.

Jas

----
"What is this talk of 'release'? Klingons do not'release' software. It escapes leaving a bloody trail of developers and quality assurance people in its wake!"
ngin
19
Years of Service
User Offline
Joined: 11th Feb 2005
Location:
Posted: 17th Feb 2005 19:49
Very nice guys, much needed, thumbs up for that!

/ngin
The Nerd
19
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 17th Feb 2005 21:38
thanks for the comments!


looking for Royalty free 3D objects?
then Check PanzerGames at this link : http://www.freewebs.com/panzergames
The Nerd
19
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 18th Feb 2005 03:20
Please comment this


looking for Royalty free 3D objects?
then Check PanzerGames at this link : http://www.freewebs.com/panzergames
00bk
19
Years of Service
User Offline
Joined: 13th Jan 2005
Location: Digging thru the earth to get to china
Posted: 19th Feb 2005 03:51
Very useful - I use it loads, especially if I have a "boss" in a room so that the player cannot escape... mwahahahahahahaka-cough-argh-splutter-*dies*


the apocalypse is coming!
The Nerd
19
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 19th Feb 2005 05:04



looking for Royalty free 3D objects?
then Check PanzerGames at this link : http://www.freewebs.com/panzergames
Freddy 007
19
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 23rd Feb 2005 00:06
It's a CLOSE door script


Check out PanzerGames at: http://www.freewebs.com/panzergames
æ ø å
The Nerd
19
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 23rd Feb 2005 01:29
@KLU 007 :

Quote: "It's a CLOSE door script"

Yes but it the zip also include the OPEN door script

@Guy :

I need more details before i can help you.


looking for Royalty free 3D objects?
then Check PanzerGames at this link : http://www.freewebs.com/panzergames
Freddy 007
19
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 23rd Feb 2005 03:47
Quote: "Yes but it the zip also include the OPEN door script "


Sorry about that


Check out PanzerGames at: http://www.freewebs.com/panzergames
æ ø å
eek
19
Years of Service
User Offline
Joined: 26th Dec 2004
Location:
Posted: 23rd Feb 2005 13:07
@ Nerd, I don't know if you saw my site post, but I have your tutorial on: http://fpsc.gandagun.net I assumed it was ok but I just want to check with you.

Les Horribres
18
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 14th Mar 2006 02:42
What the hell?

Mosillivo: Fires Rage, Earth Rumble, Evil Reigns, Cities Tumble
Join the NJL: The War Has Begun, Which Side Are You On?
Nunticaelitusphobic (Scared of Internet)
Reality Forgotten
FPSC Reloaded TGC Backer
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Wichita Falls TX
Posted: 14th Mar 2006 02:44
uhm?

"I am ready to meet my Maker. Whether my Maker is prepared for the great ordeal of meeting me is another matter."
-- Winston Churchill
Les Horribres
18
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 14th Mar 2006 02:46
LOL... hey... lets resurect old threads!

Mosillivo: Fires Rage, Earth Rumble, Evil Reigns, Cities Tumble
Join the NJL: The War Has Begun, Which Side Are You On?
Nunticaelitusphobic (Scared of Internet)
Reality Forgotten
FPSC Reloaded TGC Backer
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Wichita Falls TX
Posted: 14th Mar 2006 02:48
lol...let's not start that rash again...I dont think the docs have the meds to treat it. though I am sorry for posting such a dumb thread.

"I am ready to meet my Maker. Whether my Maker is prepared for the great ordeal of meeting me is another matter."
-- Winston Churchill

Login to post a reply

Server time is: 2024-03-28 23:02:00
Your offset time is: 2024-03-28 23:02:00