Jump to content

Doors that open automatically?


Recommended Posts

So I'm working on a map, and I want to have an automatic door which opens as the player gets close. In the old DF2 game I did this by making "pressure plates" on the floor and conencting them to the door.
I know it is possibe to makethis in JO/JA but I cant seem to remember the process exactly and I cant find a tutorial on how to do it.
Normally I make my door and set it which the up vector for movement, and make it activateable.
I'm assuming its a trigger box base though? Have triggers boxs on either side of the door linked to the door so when player overlaps with the box it sends the trigger to the door and "open sesame" ?

Check out some of my previous works:
JK Hub - [Editor: Zero Raven]

Link to comment

If you just have a func_door with no targetname a trigger for opening and closing it will automatically be created, no need to do anything else. If you want to place the trigger manually (and again, you usually don't need to) use a trigger_multiple and set both the target and the target2 to the func_door's targetname.

Asgarath83 likes this
Link to comment

You can add targetnames and a trigger if you want.  Sometimes it is better to make triggers for the door depending on the doors angle and how fast you want it to open so a player can go through the door "at speed" without being interrupted.  The only key and value you would need to add to the trigger (other than the target) would be a small wait time.  At the very least add a wait time of 1.  In my experiences with Jedi Academy, triggers will be triggered in milliseconds and if a wait time isn't added to the door trigger you may have problems getting through the door.

Link to comment

You can add targetnames and a trigger if you want.  Sometimes it is better to make triggers for the door depending on the doors angle and how fast you want it to open so a player can go through the door "at speed" without being interrupted.  The only key and value you would need to add to the trigger (other than the target) would be a small wait time.  At the very least add a wait time of 1.  In my experiences with Jedi Academy, triggers will be triggered in milliseconds and if a wait time isn't added to the door trigger you may have problems getting through the door.

Just setting a target and a wait sucks. Use target2 and a toggle door instead.

Link to comment

I prefer to use categorized dynamic Icarus scripts for my doors( Ex: double_doors.ibi, single_door.ibi, double_rotating_doors.ibi, single_rotating_door.ibi, etc... ). That way I can have a huge amount of different types of doors, and adjust lines in a script accordingly.

 

To me, it's easier to setup entities to properly use dynamic scripts, and then just change the one script, rather than changing KVP's on large amounts of entities.

NumberWan likes this
Link to comment

There are many ways to make a door open the way you want it to open.  Make a test map and experiment.  Find which one you like and use that one.  Don't let someone tell you that one way "sucks" when it works the way you intend it to work.  You have many examples here so test em out.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...