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 close/lock from a Trigger Zone?

Author
Message
Belacios
12
Years of Service
User Offline
Joined: 11th Nov 2012
Location: Otherworld
Posted: 4th Dec 2012 13:07
It's just that...
Just want to my character to enter in a room, and then the door close and locks itself behind him.

It would be of a great help, thanks for the attention.
Ertlov
17
Years of Service
User Offline
Joined: 18th Jan 2007
Location: Austria
Posted: 4th Dec 2012 15:58
Use doorscript "doorremote" and place an entity somewhere in the level before the room you have in mind, an entity that the player must pass closely that opens the door and then destroy itself or goes to a suspended state.

In the room itself you put another one that closes it again and then destroy itself or goes to a suspended state.

Come to where the madness is:http://www.homegrowngames.at
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 4th Dec 2012 17:33
Quote: "Just want to my character to enter in a room, and then the door close and locks itself behind him.
"


1a. Place your segment door. Right-click on the door and put this script in the door's main script.



1b. Give a name for the door (example- DOOR1)

2a. Place trigger on the other side of the door. Right-click and in the If Used field put the name of the door (example- DOOR1).

2b. Set the trigger's main script to use "plrinzoneactivateused.fpi".

This method works, and is in the OCFPS Guide (page 92).


There's no problem that can't be solved without applying a little scripting.
Belacios
12
Years of Service
User Offline
Joined: 11th Nov 2012
Location: Otherworld
Posted: 5th Dec 2012 13:01
Thanks a lot for the tips guys!

It helped me a lot, I'll have to read that OCFPS Guide once in a while. XD

Login to post a reply

Server time is: 2024-11-23 19:52:11
Your offset time is: 2024-11-23 19:52:11