Portal 2
Alyssa Feb 28, 2019 @ 4:13pm
Hammer - Underground "Use" Door
This is a follow up of my question about the missing particles. I decided to make a map about a gel pump station, and I was looking for a door instance that is opened when it is used (The door usually appears at the end of maps. You open the door, you go through, and it closes behind you.) To my surprise, there was no instance for the push door. Does anybody know how to make, or where to find an instance like this?
< >
Showing 1-9 of 9 comments
Fox Mar 1, 2019 @ 10:05am 
Originally posted by Bumbleball:
This is a follow up of my question about the missing particles. I decided to make a map about a gel pump station, and I was looking for a door instance that is opened when it is used (The door usually appears at the end of maps. You open the door, you go through, and it closes behind you.) To my surprise, there was no instance for the push door. Does anybody know how to make, or where to find an instance like this?
It's pretty easy, it requires two entities to work: prop_dynamic and func_button.
Let's start with creating prop_dynamic. Create a prop_dynamicand set it's model to underground_door_dynamic.mdl. Set it's name to whatever you wan't. I'll set it to exit_door. Now create a brush with nodraw texture in the "door knob" position. (The think you push in real life in order to open such a door :P). While you select the brush press ctrl+t to tie a brush to entity. Change the type from func_detail to func_button. In flags tab select Don't move. In properties select Delay Before Reset (-1 stay) to -1. Set Render Mode to Dont Render. Now go to outputs and add:
OnPressed > exit_door > SetAnimation > open > 0 OnPressed > !self > kill > <none> >0.1

Tip: !self as a target entity point's to the entity that fires the output. !player points to the player. !activator points to entity activator.

Wiki pages:
https://developer.valvesoftware.com/wiki/Prop_dynamic
https://developer.valvesoftware.com/wiki/Func_button
https://developer.valvesoftware.com/wiki/Category:Portal_2_Level_Design
Alyssa Mar 1, 2019 @ 3:37pm 
Thank you for your response, but there is a slight issue. The func_button does not seem to realize that there is a prop_dynamic in the map, as there is no output type for a prop_dynamic labeled on the "Target entities named" list. (One note, I named the button door_activator, and the door, entry_door_dynamic.)
Last edited by Alyssa; Mar 1, 2019 @ 3:38pm
Fox Mar 1, 2019 @ 4:12pm 
Originally posted by Bumbleball:
Thank you for your response, but there is a slight issue. The func_button does not seem to realize that there is a prop_dynamic in the map, as there is no output type for a prop_dynamic labeled on the "Target entities named" list. (One note, I named the button door_activator, and the door, entry_door_dynamic.)
What do you mean?
Alyssa Mar 1, 2019 @ 7:21pm 
I should reference this in my next post:

OnPressed > exit_door > SetAnimation > open > 0 OnPressed > !self > kill > <none> >0.1

I go through the first step OnPressed, then I go and find exit_door. What I mean is, it does not appear as a valid entry on the "Targets entities named" list, and when typed, will appear as the color pink, even though there is a prop_dynamic in the map called exit_door.
Fox Mar 2, 2019 @ 2:38am 
Originally posted by Bumbleball:
I should reference this in my next post:

OnPressed > exit_door > SetAnimation > open > 0 OnPressed > !self > kill > <none> >0.1

I go through the first step OnPressed, then I go and find exit_door. What I mean is, it does not appear as a valid entry on the "Targets entities named" list, and when typed, will appear as the color pink, even though there is a prop_dynamic in the map called exit_door.
"exit door" is a name of your door entity :P. You named it entry_door_dynamic.
Kenopxya Mar 2, 2019 @ 3:17pm 
,
Alyssa Mar 2, 2019 @ 3:28pm 
That , has nothing to do with Hammer.
Fox Mar 3, 2019 @ 12:43am 
Originally posted by Bumbleball:
That , has nothing to do with Hammer.
If you've solved the problem please mark it as solved.
Alyssa Mar 3, 2019 @ 7:59am 
Well, I eventually got it last night, so I will mark this as solved.
< >
Showing 1-9 of 9 comments
Per page: 1530 50

Date Posted: Feb 28, 2019 @ 4:13pm
Posts: 9