Panels

From Valve Developer Community
Revision as of 13:46, 8 May 2011 by Stylus (talk | contribs) (See also)
Jump to: navigation, search
Panels in Portal 2

Panels are architectural elements. They are individually positioned so that, together, they form the test chamber. Because the panels are moved individually by robotic arms, the room can react to the player. They can form stairs, new ledges, open like doors, and tend to convey a sense that the room itself is alive.

Creating Panels

1. Create a prop_dynamic entity with the following settings:

Property Name Value
World Model models/anim_wp/room_transform/arm64x64_interior.mdl
Name panel1
Collision Not Solid

2. Create a 256Lx256Wx32H block brush above the model. Tie it to a func_brush entity with the following settings:

Property Name Value
Name panel1_brush
Parent panel1

3. Create a logic_auto entity and set up the output as follows:

My Output Target Entity Target Input Parameter Delay Only Once
Io11.png OnMapSpawn panel1_brush SetParentAttachmentMaintainOffset panel_attach 0.00 Yes(?)

Now the func_brush can follow the animation of the prop_dynamic.

4. Create a logic_relay with the following settings:

Property Name Value
Name relay_panel1_animation

and the following outputs:

My Output Target Entity Target Input Parameter Delay Only Once
Io11.png OnTrigger panel1 SetAnimation (ANIMATION NAME) 0.00 Yes(?)

See also