Creating rotating panels: Difference between revisions
(Created page with '== Creating Panels rotate == 1. Create a prop_dynamic entity with the following settings: ::{| class=standard-table ! Property Name || Value |- | Name || trans_panel |- | …') |
|||
Line 89: | Line 89: | ||
[http://www.youtube.com/watch?v=Mxk9xPbsC6E Video preview] | [http://www.youtube.com/watch?v=Mxk9xPbsC6E Video preview] | ||
== See also == | |||
* [[Portal 2 Level Creation]] | |||
* [[Panels]] | |||
[[Category:Portal 2 Level Design]] | |||
[[Category:Portal 2 Tutorials]] |
Revision as of 14:49, 8 May 2011
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
Open model browser and choose following settings(object properties):
Property Name Value World Model models/anim_wp/simple_panel_transforms/simple_panel.mdl Sequence BindPose
Go under "model" tab and select(model browser):
Model Sequence rotate_180
2. Create a block brush(brush preview - custom size) and align it with the model. Tie it to a func_brush entity with the following settings(object properties):
Property Name Value Name trans_brush Parent trans_panel
3. Create a logic_auto entity and set up the output as follows(logic_auto/outputs):
4. Create a ambient_generic entity with the following settings(ambient_generic):
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(prop_dynamic/outputs):
6. Create a prop_button entity and set up the output as follows(prop_button outputs):
This will rotate the panel along with brush. Second line will rotate the panel back to normal position after a delay.
set up the output to "fire only once" as follows
Instead of prop_button you can also use trigger entity