Skip to main content

button_target

button_target icon
Brush entity

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:

KeyDescriptionDefault
Nametargetname

Triggering the entity switches it like a shot does, and the use types On and Off only switch it on or off. See Common keys.

Targettarget

Names 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.

Mastermaster

Names 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 Activates

Players can also switch it with their use key. This flag is set by default

2Start On

The 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​

Changes since 1.38​

  • The Master key works. In SBO 1.38, a locked button_target still switched on, because SBO 1.38 never read the Master key that the editor offered