Creating rotating panels: Difference between revisions
(removed see also link to main page, already in category) |
(some corrections) |
||
Line 16: | Line 16: | ||
|- | |- | ||
| World Model || models/anim_wp/simple_panel_transforms/simple_panel.mdl | | World Model || models/anim_wp/simple_panel_transforms/simple_panel.mdl | ||
|} | |} | ||
Line 24: | Line 22: | ||
! Model | ! Model | ||
|- | |- | ||
| Sequence || | | Sequence || BindPose | ||
|} | |} | ||
Line 72: | Line 70: | ||
! || My Output || Target Entity || Target Input || Parameter || Delay || Only Once | ! || My Output || Target Entity || Target Input || Parameter || Delay || Only Once | ||
|- | |- | ||
| [[Image:Io11.png]] || OnPressed || trans_panel || | | [[Image:Io11.png]] || OnPressed || trans_panel || SetAnimation || rotate_180 || 0.00 || No | ||
|- | |- | ||
| [[Image:Io11.png]] || OnPressed || trans_panel || | | [[Image:Io11.png]] || OnPressed || trans_panel || SetAnimation || rotate_180_reverse || 0.00 || No | ||
|} | |} | ||
This will rotate the panel along with brush. Second line will rotate the panel back to normal position after a delay. | This will rotate the panel along with brush. Second line will rotate the panel back to normal position after a delay. |
Revision as of 01:39, 27 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:
Property Name Value World Model models/anim_wp/simple_panel_transforms/simple_panel.mdl
Go under "model" tab and select:
Model Sequence BindPose
2. Create a block brush(custom size) 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 entity 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.
set up the output to "fire only once" as follows
Instead of prop_button you can also use trigger entity