Creating rotating panels: Difference between revisions
Line 78: | Line 78: | ||
''Cleaned up and polished by LemonLake'' | ''Cleaned up and polished by LemonLake'' | ||
[http://forums.thinkingwithportals.com/downloads.php?view=detail&df_id=369 Download panels_rotate Prefab] | [http://forums.thinkingwithportals.com/downloads.php?view=detail&df_id=369 Download panels_rotate Prefab] | ||
Revision as of 11:09, 9 April 2012
Template:Otherlang2 Currently being cleaned up by LemonLake.

You can upload screenshots at Special:Upload. For help, see Help:Images.
Creating Panels rotate
1. Create a prop_dynamic entity with the following settings:
Property Name Value Name trans_panel Pitch Yaw Roll (X Y Z) 90 0 0 World Model models/anim_wp/simple_panel_transforms/simple_panel.mdl
2. Create a block brush of any size you wish (64x16x64 recommended) and align it with the model. Tie it to a func_brush entity with the following settings:
Property Name Value Name trans_brush Parent trans_panel
3. Create a logic_auto near the the brush you just created (not too close) and set up the output as follows:
4. Create a ambient_generic entity with the following settings:
Property Name Value Name trans_sound_end Sound name World.SpeedFlingRotatingPanelStop Volume 2
5. Return to prop_dynamic entity and set up the output as follows:
6. Create a prop_button entity and set up the output as follows:
This will rotate the panel along with brush. Second line will rotate the panel back to normal position after a delay.
You can also connect the rotating panel to any other kind of input. Set the outputs to this:
Cleaned up and polished by LemonLake