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