Help with prop_door_rotating

Avatar
Aquanistic
5 Posts
Posted Oct 09, 2011
I'm working on my first map and having trouble with making a simple pushbar door (the kind with the green sticker on it). I have placed it in my map and used this tutorial (http://developer.valvesoftware.com/wiki/Prop_door_rotating) to try to make it work, but it won't.

In game I can walk right through it and when I press E it rotates on a middle axis with no animation or sound. I tried decompiling a map (sp_a3_portal_intro) and copying a door from there and although it was solid in my map, pressing E did nothing.

Here is a sceenshot of the settings I have on the door now: http://img694.imageshack.us/img694/1532/portaldoor.png

Does the Hinge Axis have anything to do with it?

I figured that making a door would be easy, but it's giving me trouble and I can't find any good information on how to make a functioning one online. Can anyone help me?

Advertisement
Registered users don’t see ads! Register now!
Avatar
MasterLagger
1,695 Posts
Posted Oct 09, 2011
Replied 11 minutes later
Prop_door_rotating only works for certain doors. I had this problem also. I suggest making a func_rotating_door with a nodraw brush and have your door prop Parented to it.
Avatar
gompasta
109 Posts
Posted Oct 09, 2011
Replied 8 minutes later
Just make it a prop_dynamic, and have a func_button on it, then set the open animation. It comes with sound and everything.
Avatar
Lpfreaky90
2,842 Posts
Posted Oct 09, 2011
Replied 1 hour later
There's also the thing with the axis: usually the center of the object is the rotation axis.
If you select your brush, you will see that there is a circle in the middle of your brush, that's your axis. If you drag that to the side, the axis will shift thus making the door open like a normal door :smile:

Hope that helped!

Avatar
ChickenMobile
2,460 Posts
Posted Oct 09, 2011
Replied 9 hours later

gompasta wrote:
Just make it a prop_dynamic, and have a func_button on it, then set the open animation. It comes with sound and everything.

I believe this is the answer. There is no prop that I know of that can be a 'prop_door_rotating' in Portal 2. Look for the correct model and using a func_button or an 'OnUse' output, set the animation to 'open'.

Consequently I will make an instance of this so you can download easier. Will work on it soon.

Avatar
Aquanistic
5 Posts
Posted Oct 10, 2011
Replied 11 hours later
Thanks for all of the help! I changed it to a prop_dynamic, but when I selected the door brush and hit Ctrl+T to create the brush entity func_button, it told me that "There are no eligible selected objects." What did I do wrong?
Avatar
Spam Nugget
492 Posts
Posted Oct 10, 2011
Replied 7 hours later
Okay, prop_dynamic isnt a brush entity, its a point entity. This means that you dont make it from a brush by hitting control T, put it into the map with the entity tool, or shift e. Then click on the 'world model' field and browse for the model of the door.
Advertisement
Registered users don’t see ads! Register now!
Avatar
ChickenMobile
2,460 Posts
Posted Oct 11, 2011
Replied 11 hours later
Here is the instance I said I would be making. Remember to put a -1 if the door doesn't close again and leave it at ??? if you can push 'Use' key to open and close the door.

You can also open or close the door by using the proxy through an input.

Attachments
underground_door_dynamic.vmf
0.01 MB 104 downloads