ZeroRaven Posted April 18, 2014 Share Posted April 18, 2014 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
mrwonko Posted April 18, 2014 Share Posted April 18, 2014 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
ZeroRaven Posted April 18, 2014 Author Share Posted April 18, 2014 So as long as I have the direction (I.E. Up) set it will open and close upon proximity to said player? Check out some of my previous works:JK Hub - [Editor: Zero Raven] Link to comment
ZeroRaven Posted April 18, 2014 Author Share Posted April 18, 2014 And this functions in MP as well as SP correct?I only ask because I'd had some issues with doors not opening in MP previously. Both using the "activate" command on the func_door as well as not using any such command. Both seemed to yield sporadic results. Check out some of my previous works:JK Hub - [Editor: Zero Raven] Link to comment
mrwonko Posted April 18, 2014 Share Posted April 18, 2014 Feel free to share a map where such a problem exists and we can tell you why it's happening. Link to comment
lil_binger Posted April 21, 2014 Share Posted April 21, 2014 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
mrwonko Posted April 21, 2014 Share Posted April 21, 2014 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
MoonDog Posted April 21, 2014 Share Posted April 21, 2014 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
lil_binger Posted April 21, 2014 Share Posted April 21, 2014 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
NumberWan Posted April 24, 2014 Share Posted April 24, 2014 For basic doors I use simple func_door. If I want to create a rotating door with complex details which move in a peculiar way - I use scripts only. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now