Panels: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (cleaned up, still needs some tweaking done)
m (Some markup fixes)
Line 10: Line 10:
* [[func_brush]]
* [[func_brush]]
* [[logic_auto]]
* [[logic_auto]]
* [[logic_relay]] Or some trigger
* [[logic_relay]] (or some trigger)
* Animation do you want to play
* Animation do you want to play




1. Create the prop_dynamic and set the Model "''models/anim_wp/room_transform/arm64x64_interior.mdl''" and set the Name of the prop_dynamic to e.g. "panel1". And set the "Collision" to "Not Solid".
# Create the prop_dynamic and set the Model "''models/anim_wp/room_transform/arm64x64_interior.mdl''" and set the Name of the prop_dynamic to e.g. "panel1". And set the "Collision" to "Not Solid".
 
# Create a func_brush on the "top side" of the Model. Set the Name to e.g. "panel1_brush". And set the Parent to "panel1".
 
# Create a Logic_auto and fire follow Output to the panel1_brush:<p><code>OnMapSpawn  panel1_brush  SetParentAttachmentMaintainOffset  panel_attach</code></p>Now the func_brush can follow the animation of the prop_dynamic.
2. Create a func_brush on the "top side" of the Model. Set the Name to e.g. "panel1_brush". And set the Parent to "panel1".
# Create a logic_relay, or some type of Trigger, set the name to e.g. "relay_panel1_animation".<p>And fire follow Output to the prop_dynamic:</p><p><code>OnTrigger  pannel1  SetAnimation  ANIMATION_NAME</code></p>
 
 
3. Create a Logic_auto and fire follow Output to the panel1_brush:
 
OnMapSpawn  panel1_brush  SetParentAttachmentMaintainOffset  panel_attach
 
Now the func_brush can follow the animation of the prop_dynamic.
 
 
4. Create a logic_relay, or some type of Trigger, set the name to e.g. "relay_panel1_animation".
 
And fire follow Output to the prop_dynamic:
 
OnTrigger  pannel1  SetAnimation  ANIMATION_NAME


== See Also ==
== See Also ==


* [[Portal 2 Level Creation]]
* [[Portal 2 Level Creation]]

Revision as of 06:42, 28 April 2011

Panels in Portal 2

Panels are a type of game mechanics in Portal 2. They can change a room's architecture and create stairs or platforms by utilizing many of the available animations panels come with.

Creating Panels

What we need:


  1. Create the prop_dynamic and set the Model "models/anim_wp/room_transform/arm64x64_interior.mdl" and set the Name of the prop_dynamic to e.g. "panel1". And set the "Collision" to "Not Solid".
  2. Create a func_brush on the "top side" of the Model. Set the Name to e.g. "panel1_brush". And set the Parent to "panel1".
  3. Create a Logic_auto and fire follow Output to the panel1_brush:

    OnMapSpawn panel1_brush SetParentAttachmentMaintainOffset panel_attach

    Now the func_brush can follow the animation of the prop_dynamic.
  4. Create a logic_relay, or some type of Trigger, set the name to e.g. "relay_panel1_animation".

    And fire follow Output to the prop_dynamic:

    OnTrigger pannel1 SetAnimation ANIMATION_NAME

See Also