Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
Difference between revisions of "func button"
From Quake Wiki
m (added category) |
m |
||
Line 3: | Line 3: | ||
The '''func_button''' is a solid entity that is used to create a physical button in the level that triggers events when the player touches it. Unlike the trigger_once and trigger_multiple entities, the func_button is visible and normally used in situations where the designer wants the player to see the button, such as for an elevator button. However, func_button is sometimes used in places that it's difficult for the player to see, such as on the floor to trigger [[traps]], or quite commonly as a means to open a [[secret area]] where it must be shot. | The '''func_button''' is a solid entity that is used to create a physical button in the level that triggers events when the player touches it. Unlike the trigger_once and trigger_multiple entities, the func_button is visible and normally used in situations where the designer wants the player to see the button, such as for an elevator button. However, func_button is sometimes used in places that it's difficult for the player to see, such as on the floor to trigger [[traps]], or quite commonly as a means to open a [[secret area]] where it must be shot. | ||
+ | ==Usage== | ||
+ | The [[Button tutorial]] has some examples of the creation and use of the func_button entity. | ||
+ | {{todo}} | ||
==Attributes== | ==Attributes== | ||
In addition to the settings listed below, the func_button can be made to move up or down by setting its angle to -1 (up) or -2 (down). | In addition to the settings listed below, the func_button can be made to move up or down by setting its angle to -1 (up) or -2 (down). | ||
Line 31: | Line 34: | ||
===Spawnflags=== | ===Spawnflags=== | ||
The button supports [[Entity#Spawnflags|standard spawnflags]] for difficulty and deathmatch presence. | The button supports [[Entity#Spawnflags|standard spawnflags]] for difficulty and deathmatch presence. | ||
+ | {| class="wikitable collapsible collapsed" | ||
+ | |- | ||
+ | ! Flag !! Common Name | ||
+ | |- | ||
+ | | 256 || Not on Easy | ||
+ | |- | ||
+ | | 512 || Not on Normal | ||
+ | |- | ||
+ | | 1024 || Not on Hard | ||
+ | |- | ||
+ | | 2048 || Not in Deathmatch | ||
+ | |} | ||
[[Category:Quake entities]] | [[Category:Quake entities]] |
Revision as of 22:03, 28 March 2013
The func_button is a solid entity that is used to create a physical button in the level that triggers events when the player touches it. Unlike the trigger_once and trigger_multiple entities, the func_button is visible and normally used in situations where the designer wants the player to see the button, such as for an elevator button. However, func_button is sometimes used in places that it's difficult for the player to see, such as on the floor to trigger traps, or quite commonly as a means to open a secret area where it must be shot.
Contents
Usage
The Button tutorial has some examples of the creation and use of the func_button entity.
Unspecified user added a To-Do; unspecified work. |
Attributes
In addition to the settings listed below, the func_button can be made to move up or down by setting its angle to -1 (up) or -2 (down).
Keys
targetname | The name of the button. Since the button is a trigger itself, this is generally used for killing the button from another trigger. |
target | The targetname of the entity that will be triggered when the button is pressed. |
killtarget | The targetname of the entity that will be killed when the button is pressed. |
wait | Time after pressing the button for it to reset and be pushable again. Setting this to -1 will cause the button to stay pressed. |
delay | Time after pressing the button before triggering its targets. |
speed | The movement speed of the button. |
lip | An offset added to the default movement distance that allows the designer to adjust the amount the button sticks in or out after being pressed. |
health | If set to any value above 0, the button will only be activated by shooting it or hitting it with the axe. Often used for buttons that open secrets. |
message | A message to display when the button triggers. |
Spawnflags
The button supports standard spawnflags for difficulty and deathmatch presence.
Flag | Common Name |
---|---|
256 | Not on Easy |
512 | Not on Normal |
1024 | Not on Hard |
2048 | Not in Deathmatch |