Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
Editing func button
From Quake Wiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:func_button}} | {{DISPLAYTITLE:func_button}} | ||
− | + | The '''func_button''' is a button that can be used to trigger events in a level and is operated by the player on touch. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | ==Settings== | |
+ | In addition to the settings listed below, the func_button can be made to move up or down by setting angle to -1 (up) or -2 (down). | ||
− | == | + | ===Keys=== |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | | ! bgcolor="#eeeeee" width=" | + | | ! bgcolor="#eeeeee" width="100px" | ''targetname'' || The name of the button. Since the button is a trigger itself, this is generally used for killing the button from another trigger. |
− | | The | ||
|- | |- | ||
− | | ! bgcolor="#eeeeee" | ''target'' | + | | ! bgcolor="#eeeeee" | ''target'' || The targetname of the entity that will be triggered when the button is pressed. |
− | | The targetname of the entity that will be triggered when the button is pressed. | ||
|- | |- | ||
− | | ! bgcolor="#eeeeee" | ''killtarget'' | + | | ! bgcolor="#eeeeee" | ''killtarget'' || The targetname of the entity that will be killed when the button is pressed. |
− | | The targetname of the entity that will be killed when the button is pressed. | ||
|- | |- | ||
− | | ! bgcolor="#eeeeee" | ''wait'' | + | | ! bgcolor="#eeeeee" | ''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. |
− | | Time after pressing the button for it to reset and be pushable again. Setting this to -1 will cause the button to stay pressed. | ||
|- | |- | ||
− | | ! bgcolor="#eeeeee" | ''delay'' | + | | ! bgcolor="#eeeeee" | ''delay'' || Time after pressing the button before triggering its targets. |
− | | Time after pressing the button before triggering its targets. | ||
|- | |- | ||
− | | ! bgcolor="#eeeeee" | ''speed'' | + | | ! bgcolor="#eeeeee" | ''speed'' || The movement speed of the button. |
− | | The movement speed of the button. | ||
|- | |- | ||
− | | ! bgcolor="#eeeeee" | ''lip'' | + | | ! bgcolor="#eeeeee" | ''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. |
− | | 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. | ||
|- | |- | ||
− | | ! bgcolor="#eeeeee" | ''health'' | + | | ! bgcolor="#eeeeee" | ''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. |
− | | 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. | ||
|- | |- | ||
− | | ! bgcolor="#eeeeee" | ''message'' | + | | ! bgcolor="#eeeeee" | ''message'' || A message to display when the button triggers. |
− | | A message to display when the button triggers. | ||
|} | |} | ||
===Spawnflags=== | ===Spawnflags=== | ||
− | + | The button supports [[Entity#Spawnflags|standard spawnflags]] for difficulty and deathmatch presence. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |