func_rot_button

keyvalues

• targetname (string) - name

• target (string) - target when activated

• globalname (string) - global entity name

• changetarget (string) - change target name

• speed (integer) - how fast the button travels when pressed

• master (string) - targetname of multisource entity.

• health (integer) - if nonzero, button may be activated by shooting it

• sounds (integer) - sounds

21 = squeaky

22 = squeaky pneumatic

23 = ratchet groan

24 = clean ratchet

25 = gas clunk

• wait (integer) - how long before the button pops back out (-1 = never)

• delay (integer) - how long to wait before target is activated

• distance (integer) - distance in degrees

• _minlight (integer) - minimum light level

• angles (string) - pitch yaw roll (y z x)

flags

• not solid (1)

• reverse direction (2) - reverse default rotation direction

• toggle (32) - set button mode to toggle (doesn't reset unless touched, then refire target)

• x axis (64) - forces rotation about the x axis (defaults to z axis)

• y axis (128) - forces rotation about the y axis (defaults to z axis)

• touch activates (256) - button can be activated by bumping into it

notes

• rotating button or lever used to activate objects in the world

• changetarget key will change the button's target's target value to the button's changetarget value

related topics

func_rotating

func_button

Overview of func_ entities

Entity Guide Overview