Sliding Door
masterswordman
Join Date: 2002-12-21 Member: 11303Members
<div class="IPBDescription">Did I miss something</div> I thought I saw something about func_door 's not working <!--emo&:0--><img src='http://www.unknownworlds.com/forums/html/emoticons/wow.gif' border='0' style='vertical-align:middle' alt='wow.gif'><!--endemo--> , search isn't my friend. Also the official maps are not decompilable, or else I wouldn't bother you. How do you make the sliding doors, or did I miss something? It is prefered to get insturctions on 2 doors that open at the same time, but I can figure it out.
Comments
how to make doors which are near impossible to 'screw up':
Place the door and set its close delay to anything other than -1, leave 'use only' and 'toggle' flags unchecked.
Draw a block brush that extends either side of the door and convert it to a trigger_presence. Add the door to its 'activation target' property and leave all others blank.
The trigger will open the door and it will then close itself. Running in and out of the trigger like a nutcase has no adverse affects, at least not any I have been able to find.
Checking the 'toggle' flag in the door entity means it can easily get reversed.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
The thing is even a func_door doesn't work when you do it normally
Tommy14's suggestion is that you use a trigger_presence either side of the door (where the players will be approaching from) to trigger the door.
Trust me.
Say you want to make a door that opens in 2 parts.
One slides left, and the other slides right.
ok.
Open up hammer, and make a room.
Then , while in the TOP view, you make a brush like this:
[======]
This is your door.
Now, split it in two with the clip too so it becomes 2 brushes
[===|===]
Now, INDIVIDUALLY, you turn both brushes into func_door entities.
Then give each of them the same name, like "door1".
(Giving them the same name makes sure that when they are triggered, they are activated at the same time.)
Now, Select the LEFT func_door press ALT-ENTER to get into it's properties.
Check the "TOGGLE" flag in the properties
In the ANGLE box, put in 180. This will make the door move in that direction (where the little clock thingy on the top right is pointing) according to the TOP view.
The RIGHT door is at 0 angle, which is good cuz it's at the right direction.
Check the "TOGGLE" flag as well in the right door
Then, make a new brush that covers the whole front part of the doors like so:
[======]
[===|===]
Turn this new brush into a TRIGGER_MULTIPLE, and have it target "door1"
Then, copy that brush on the other side of the door giving this at the end:
[======] <--TRIGGER_MULTIPLE
[===|===] <--2 FUNC_DOOR
[======]<--TRIGGER_MULTIPLE
Notes : Be careful when playing with opening the PROPERTIES of the entities that you have just created. Do NOT change TABS (like going to the FLAGS tab) or else the ANGLE setting you've entered will RESET to 0.
And don't mind the errors that hammer gives you about them when you check for errors (ALT-P) Ignore them.
Now, if you want your twin doors to open up/down,
Repeat the same process, but when you enter the angle of the doors, select UP/DOWN in the drop down list.
There ya go!
With the USE flag checked, you gotta press E
With the TOGGLE flag checked, you need to TRIGGER it with an entity.
With both options checked, the TOGGLE flag has priority.
Triggering the door is really only useful when you have 2 func_doors like i described in my above post, or a door with glass in it, since your body can't trigger both at the same time (almost never happens)
Chromeangel cleared it up for me, and I didn't have a problem with it. No it's not ridiculously easy <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
Actually it is once you get it, and you use trigger_presence <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->