button_target

A button_target switches on or off when a player shoots it, and fires its Target each time.
While it is off, its brush shows the textures whose names start with +0 to +9, and while it is on, it shows the
alternate textures whose names start with +a to +j.
Attributes
The entity also has these common keys:
- Appearance: Render FX, Render Mode, FX Amount and FX Color
- Compiler keys of brush entities: all of them
targetnameTriggering the entity switches it like a shot does, and the use types On and Off only switch it on or off. See Common keys.
targetNames the entities to trigger with the use type On when it switches on, and with Off when it switches off. Whoever shot or used it is passed on as the activator.
masterNames a master. While the master is off, shooting, using and triggering the entity can't switch it on, but they can still switch it off.
Flags
1Use ActivatesPlayers can also switch it with their use key. This flag is set by default
2Start OnThe entity starts switched on and shows its alternate texture
Notes
- Any damage switches it, so each bullet or explosion that hits it switches it again
See also
func_button- a button that moves when you press itfunc_rot_button- a button that turns when you press it- Masters and states - how a Master locks an entity
Changes since 1.38
- The Master key works. In SBO 1.38, a locked
button_targetstill switched on, because SBO 1.38 never read the Master key that the editor offered