Creating moving stairs
From Valve Developer Community
« Back to Portal Level Creation
To do: Please clean up this article if you can. Feel free to modify anything that is confusing.
Contents |
Introduction
Step 1
Create blocks for your stairs that are 32*16*128. Align these brushes on their corners, and determine the size of the hole to make.Step 2
Erase your guide blocks, and create a brush that is 32*8*128. Texture this brush as a platform.
Create 4 extra brushes, that are 2*4, with their corners cut, like the platforms seen in other chambers.
Create a wedge that is 32*16*128 and position it as shown.
Step 4
Create a small sized piston and put it in the center of the top most brush. Any sections that do not stick out should be func_detail.
Take the top section, and tie it to a func_door. name stairs1_1
To do: add settings here
Property Name Value Name stairs1_1 Start Sound apc_engine_start Stop Sound apc_engine_stop Move Direction Down Delay Before Reset -1 Force Closed Yes
Step 5
Duplicate the func_detail and the func_door, and position them as shown. When having two cylinders on one step, simply add one half of the func_door to the other half.Step 7
Rename the func_door's to stairs1_2, stairs1_3, etc...
Change all the lower func_door's stop sound to Doors.FullOpen1. Remove their open sound.
Set the func_brush's parents to their respective func_door.
Add the grate for the stairs. You may choose to add holes in the grate.
