func_rot_button

A func_rot_button turns around its origin, set with an origin brush, when a player uses it, shoots it or touches it,
and fires its targets. It turns back after its delay.
While its master keeps it locked, a use plays Locked Sound and Locked Sentence, and once it is unlocked, a use plays Unlocked Sound and Unlocked Sentence.
Attributes
The entity also has these common keys:
- Naming and triggering: Global Entity Name
- Position: Pitch Yaw Roll
- Appearance: Render FX, Render Mode, FX Amount and FX Color
- Compiler keys of brush entities: all of them
targetnameTriggering the entity turns it like a player does, but not with the flag Touch Activates. See Common keys.
locked_soundSets the sound the entity plays when a player tries to use it while its Master locks it. A door also plays it when a player touches it and it only opens when triggered.
- None (0)
- Access Denied (2)
- Small zap (8)
- Buzz (10)
- Buzz Off (11)
- Latch Locked (12)
None (0)unlocked_soundSets the sound the entity plays when it is used while it isn't locked. A button plays it when it is pressed, and a door when it starts to open.The 12 choices
None (0)locked_sentenceSets an announcer sentence group the entity speaks when a player tries to use it while it is locked. Each try plays the next sentence of the group, at most one every few seconds.The 10 choices
None (0)unlocked_sentenceSets an announcer sentence group the entity speaks when it is used while it isn't locked. Each use plays the next sentence of the group.The 9 choices
None (0)Sets a sound file that plays instead of Locked Sound while the master locks the button.
Sets a sound file that plays instead of Unlocked Sound when the button is used.
Sets the name of a sentence group of sound/sentences.txt, such as NA, which the entity speaks instead of Locked Sentence.
If you leave this key empty, the entity speaks Locked Sentence.
Sets the name of a sentence group of sound/sentences.txt, such as EA, which the entity speaks instead of Unlocked Sentence.
If you leave this key empty, the entity speaks Unlocked Sentence.
Shows brackets around the object for players near it. Within Hint Distance, the brackets are faint and in the HUD color. When the player is close enough to use the object and looks at it, the brackets take the color of the choice.
- None (empty) - No brackets
- button - Yellow, and orange while a master locks the object
- charger - Green, and red while the charger is empty
- eyescanner - Yellow
- pickup - Yellow
None (empty)objecthint_distanceSets how far from the player's eyes the faint brackets show, in units, up to 4096. The object must be in front of the player and in sight.
If you leave this key empty or set 0, the distance is 512 units.
Names the parent, an entity that this one moves and turns with. The entity keeps the place and the angles it has on the parent in the editor. If several entities have the name, the first one counts. A name ending in .1 to .4 puts a sprite or a model that isn't solid on that attachment point of the model of the parent. A solid brush on a parent that turns needs its own origin brush. Moving objects explains it all.
If you leave this key empty, the entity doesn't move with anything.
parentflagsKeeps some of the entity's own position or angles instead of following the parent. Add up the values of the axes to keep: 2 for X, 4 for Y, 8 for Z, 16 for pitch, 32 for yaw and 64 for roll. So 112 keeps the entity level. 0 follows the parent on every axis.
0targetNames the entities to trigger when the button is used, or when it turns back with Toggle, with the use type that Use type sets.
masterNames a master, and while the master is off, the button is locked, so a use plays its locked sound and fires nothing.
speedSets how fast the button turns, in degrees per second, and 0 means 40.
50healthSets whether players shoot the button instead of using it. Above 0, any damage turns it, and players can't use it with their use key.
soundsPicks the sound the button plays when it is pressed.
- Squeaky (21)
- Squeaky Pneumatic (22)
- Ratchet Groan (23)
- Clean Ratchet (24)
- Gas Clunk (25)
If you leave this key empty, the button plays no sound.
Squeaky (21)waitSets how many seconds the button stays turned before it turns back and can be used again, and 0 means 1 second.
- Stays pressed (-1) - The button stays turned for good
3delaySets how many seconds pass between the use and the firing of Targeted object.
0distanceSets how far the button turns, in degrees.
If you leave this key empty or set 0, it doesn't turn, but it still fires its targets.
90Names the entities to trigger when the button is back where it started.
Names the entities to trigger when a player uses it while its master keeps it locked, at most every 2 seconds.
Sets the use type that Targeted object gets.
- Off (-1) - Targeted object gets Off
- Toggle (0) - Targeted object gets Toggle
- On (1) - Targeted object gets On
- On/Off (2) - With Toggle, On when the button turns and Off when it turns back
- Off/On (3) - With Toggle, Off when the button turns and On when it turns back
Toggle (0)With Toggle, sets how many seconds pass before players can use the button again.
Flags
1Not solidPlayers, monsters and shots pass through the button
2Reverse DirThe button turns the other way
32ToggleThe button stays turned after a use, and the next use turns it back, so Delay before reset isn't used
64X AxisThe button turns around the X axis instead of the vertical axis
128Y AxisThe button turns around the Y axis instead of the vertical axis
256Touch ActivatesA player who touches the button turns it, and the use key and triggers do nothing
Notes
- A
scripted_sentencecan make the button speak, and the sentence then plays from the button - Each player can turn the object hints off, or keep only the hint on what their use key would use, with the client
setting
cl_objecthint
See also
func_button- a button that moves inmomentary_rot_button- a button that turns as long as a player holds it- func_rot_button on TWHL - the Half-Life entity
Changes since 1.38
- You can use the same new keys as on
func_buttonand the new flag Player Can't Use - A
scripted_sentencecan make a button speak, as in the Half-Life 25th Anniversary Update. In SBO 1.38, only monsters spoke - The button plays its locked and unlocked sounds and sentences. In SBO 1.38, a
func_rot_buttonplayed none of them


