Wheelvalve
HOW TO MAKE A VALVEWHEEL TURN ON/OFF (OPEN AND CLOSE)
RESULTING EFFECTS Player can +USE the pipe valvewheel and the valvewheel will turn (to Open). User can repeat the +USE action and the valve will toggle (turn the other way (to Close))
Create the following in your map
1) A new texture brush and set it as a momentary_rot_button entity.
2) Ensure these flags are set:
Not Solid Checked
Toggle Checked
Use Activates Checked
3) A new prop_dynamic entity and browse/set its world model/skin as model:
valvewheel002.mdl
Bind these two objects together, making the momentary_rot_button entity as the parent of the the prop_dynamic entity.
4) Set the Name property for each of the entities. (Give each entity a unique, meaningful name.) For example:
momentary_rot_button Name = MyValveRotator prop_dynamic Name = MyValve
5) Set the Parent property of the prop_dynamic entity to the name of the momentary_rot_button entity.
prop_dynamic Parent = MyValveRotator
6) Set an output statemet in the momentary_rot_button entity's OTIP settings (i.e. Output, Target, Input, Parameter override settings in the entity's Properties | Outputs tab-page). Use the following values:
Output... OnPressed Target... MyValve Input... SetAnimation Parameter... Open
Finally, drag the momentary_rot_button entity over the prop_dynamic entity, making sure that the prop_dynamic entity is completely enclosed. IMPORTANT! The momentary_rot_button brush size should be as close to the size of the prop as possible. This will ensure that the prop (wheel) rotates in proper axis and does not behave like a right/left/up/down lever. (You can experiment with the brush size to illustrate this.)
More instructions pending.