category
General Half-Life 2/Entities
description
One of the easiest ways to make a door, but also the best looking. This model comes with a moveable handle.
keywords
prop, door, rotating, prop_door_rotating, doors.
Prop_door_rotating
This entity allows you to add a rotating door with moving handle or bar, you will have seen them littered around HL2:
They are very easy to add, so to start off with you will require a frame for them to sit in. Now the doors themselves are 48x108 so you will need a frame this big to fit them in.
Handily the door dev texture gives you the measurements so by using that as a guide you can create yourself a frame.
So once you have created a frame and textured it choose the
prop_door_rotating entity and place it in your map. You will need to select the model that it uses in the
World Model field and this can be found:
models/props_c17/door01_left.mdl
There are a few fields to be aware of:
Name: Obviously if you want to trigger it add a name, but if you have double doors and you want them to open together give them the same name and this will allow them to open at the same time no matter what one is opened.
Skin: There are quite a few skins to choose from, place a number in here like 4 for example to change the skin. Find one that suits your area.
Spawn Position: Here you can have it open or shut and also Ajar. If you do choose Ajar then you will have to depict how open you want it by using the Ajar Angles field.
Hardware Type Lever is the default is the handle, push bar is a metal bar across one side of the door with a handle on the other side.
In the Flags section choosing Locked will cause the handle to wobble and play a locked sound.
Few things to remember:
If you want a NPC to open the door then the handle will have to their left so that it open away from them, otherwise allow room for the door to swing towards them.
If you want a locked door to seal the world then place a brush covered in
nodraw behind the door.
You can unlock & lock doors via the Input system, it will need to be unlocked even if you choose the Open input.
That is all
Blink