One way door Created 17 years ago2006-07-02 08:05:51 UTC by The Killer The Killer

Created 17 years ago2006-07-02 08:05:51 UTC by The Killer The Killer

Posted 17 years ago2006-07-02 08:05:51 UTC Post #187942
Wanting to make a sliding door, but only so that it opens from one side... although the idea is that you dont have to press a button to activate it, any ideas?
Posted 17 years ago2006-07-02 08:10:32 UTC Post #187943
Just place the button on the side where you want it to open, and don't put anything on the other side.
The Mad Carrot The Mad CarrotMad Carrot
Posted 17 years ago2006-07-02 08:13:06 UTC Post #187944
Alternatively, put a trigger on one side of the door.
AJ AJGlorious Overlord
Posted 17 years ago2006-07-02 08:18:08 UTC Post #187945
Lol, knew to mapping , how would i place the trigger and set it so that the door only opens from that side... and i dont want to have to physically push a button to open the door, it will work like a normal one where you run to it and it automatically opens... but only from the one side.
Posted 17 years ago2006-07-02 08:29:40 UTC Post #187946
Just make a trigger_once on one of the sides.
Posted 17 years ago2006-07-02 08:32:10 UTC Post #187948
A trigger is a brush-based entity. Now, if I recall correctly, what you'll have to do is make a brush textured in AAATrigger texture. Place this brush on the side of the door that you want it to open from (what'll happen is that the player will hit this invisible trigger in-game and the door will open). Make sure the brush doesn't spill over the door so that it might accidently be triggered on the other side.

Select the brush and click the "ToEntity" button that's on the right hand side of the Hammer window. Select "trigger_multiple" from the list that appears. In the Target field, put the name of the door in (so name the door if you haven't: you can do this by selecting and right-clicking the door in a 2D view, scrolling down to "Properties" and given the door a name in the Name field). In the Delay before trigger field, put 0. In the Delay before reset field, put 0.

That should be it. Read our Door tutorial if you need help on making a moving door.
AJ AJGlorious Overlord
Posted 17 years ago2006-07-02 08:40:47 UTC Post #187949
Thanks alot :)
Posted 17 years ago2006-07-02 08:46:23 UTC Post #187952
Depending on what you're mapping for will determine if you use a trigger_multiple or a trigger_once. If you're mapping for single player HL and the player doesn't need to go through the door again, you can use the trigger_once. If you're mapping for deathmatch, and the player will go through the door again, you'll need to use the trigger_multiple.
AJ AJGlorious Overlord
Posted 17 years ago2006-07-02 12:05:31 UTC Post #187978
You should always search for tutorials and example maps before posting a new topic.

:)

http://twhl.co.za/mapvault_map.php?id=3494
You must be logged in to post a response.