func_button
This is an entity, present on Quake, Quake II, Quake III Arena, RTCW Single Player, RTCW Multiplayer and Enemy Territory. Below you can find its spawnflags, keys and editor settings for each game that defines it.
Quake
When a button is touched, it moves some distance in the direction of its angle, triggers all of its targets, waits some time, then returns to its original position where it can be triggered again.
Keys
| Key |
Description |
| angle |
determines the opening direction |
| target |
all entities with a matching targetname will be used |
| speed |
override the default 40 speed |
| wait |
override the default 1 second wait (-1 = never return) |
| lip |
override the default 4 pixel lip remaining at end of move |
| health |
if set, the button must be killed instead of touched |
| sounds |
0) steam metal 1) wooden clunk 2) metallic click 3) in-out |
Editor
| Property |
Value |
| Type |
brush entity |
| Color |
0 .5 .8 |
Quake II
When a button is touched, it moves some distance in the direction of it's angle, triggers all of it's targets, waits some time, then returns to it's original position where it can be triggered again.
Keys
| Key |
Description |
| angle |
determines the opening direction |
| target |
all entities with a matching targetname will be used |
| speed |
override the default 40 speed |
| wait |
override the default 1 second wait (-1 = never return) |
| lip |
override the default 4 pixel lip remaining at end of move |
| health |
if set, the button must be killed instead of touched |
| sounds |
1) silent 2) steam metal 3) wooden clunk 4) metallic click 5) in-out |
Editor
| Property |
Value |
| Type |
brush entity |
| Color |
0 .5 .8 |
| Spawn function |
SP_func_button |
Quake III Arena
When a button is touched, it moves some distance in the direction of it's angle, triggers all of it's targets, waits some time, then returns to it's original position where it can be triggered again.
Keys
| Key |
Description |
| model2 |
.md3 model to also draw |
| angle |
determines the opening direction |
| target |
all entities with a matching targetname will be used |
| speed |
override the default 40 speed |
| wait |
override the default 1 second wait (-1 = never return) |
| lip |
override the default 4 pixel lip remaining at end of move |
| health |
if set, the button must be killed instead of touched |
| color |
constantLight color |
| light |
constantLight radius |
Editor
| Property |
Value |
| Type |
brush entity |
| Color |
0 .5 .8 |
| Spawn function |
SP_func_button |
RTCW Single Player
When a button is touched, it moves some distance in the direction of it's angle, triggers all of it's targets, waits some time, then returns to it's original position where it can be triggered again.
Spawnflags
| Flag |
Bit |
Description |
| TOUCH |
8 |
|
| STAYOPEN |
64 |
|
Keys
| Key |
Description |
| model2 |
.md3 model to also draw |
| angle |
determines the opening direction |
| target |
all entities with a matching targetname will be used |
| speed |
override the default 40 speed |
| wait |
override the default 1 second wait (-1 = never return) |
| lip |
override the default 4 pixel lip remaining at end of move |
| health |
if set, the button must be killed instead of touched |
| color |
constantLight color |
| light |
constantLight radius |
Editor
| Property |
Value |
| Type |
brush entity |
| Color |
0 .5 .8 |
| Spawn function |
SP_func_button |
RTCW Multiplayer
When a button is touched, it moves some distance in the direction of it's angle, triggers all of it's targets, waits some time, then returns to it's original position where it can be triggered again.
Spawnflags
| Flag |
Bit |
Description |
| TOUCH |
8 |
|
| STAYOPEN |
64 |
|
Keys
| Key |
Description |
| model2 |
.md3 model to also draw |
| angle |
determines the opening direction |
| target |
all entities with a matching targetname will be used |
| speed |
override the default 40 speed |
| wait |
override the default 1 second wait (-1 = never return) |
| lip |
override the default 4 pixel lip remaining at end of move |
| health |
if set, the button must be killed instead of touched |
| color |
constantLight color |
| light |
constantLight radius |
Editor
| Property |
Value |
| Type |
brush entity |
| Color |
0 .5 .8 |
| Spawn function |
SP_func_button |
Enemy Territory
When a button is touched, it moves some distance in the direction of it's angle, triggers all of it's targets, waits some time, then returns to it's original position where it can be triggered again.
Spawnflags
| Flag |
Bit |
Description |
| TOUCH |
8 |
|
| STAYOPEN |
64 |
|
Keys
| Key |
Description |
| model2 |
.md3 model to also draw |
| angle |
determines the opening direction |
| target |
all entities with a matching targetname will be used |
| speed |
override the default 40 speed |
| wait |
override the default 1 second wait (-1 = never return) |
| lip |
override the default 4 pixel lip remaining at end of move |
| health |
if set, the button must be killed instead of touched |
| color |
constantLight color |
| light |
constantLight radius |
Editor
| Property |
Value |
| Type |
brush entity |
| Color |
0 .5 .8 |
| Spawn function |
SP_func_button |