Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
Editing func door
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 5: | Line 5: | ||
== Usage == | == Usage == | ||
The [[Door tutorial]] article has some examples of the creation and use of a func_door entity. | The [[Door tutorial]] article has some examples of the creation and use of a func_door entity. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Attributes == | == Attributes == | ||
+ | As mentioned above, the door will open in the direction of whatever angle you set it. The default distance covered is equal to the width of the door in that direction. You can also set the motion to be vertical by setting the angle to -1 (upward motion) or -2 (downward motion) instead. | ||
=== Keys === | === Keys === | ||
Line 32: | Line 17: | ||
|- | |- | ||
| ! bgcolor="#eeeeee" | ''killtarget'' || The targetname of the entity that will be killed when the door is triggered. | | ! bgcolor="#eeeeee" | ''killtarget'' || The targetname of the entity that will be killed when the door is triggered. | ||
− | |||
− | |||
|- | |- | ||
| ! bgcolor="#eeeeee" | ''wait'' || Time after opening for it to reset and be triggerable again. Setting this to -1 will cause the door to remain open. | | ! bgcolor="#eeeeee" | ''wait'' || Time after opening for it to reset and be triggerable again. Setting this to -1 will cause the door to remain open. | ||
Line 43: | Line 26: | ||
| ! bgcolor="#eeeeee" | ''health'' || If set to any value above 0, the door will only be activated by shooting it or hitting it with the axe. Often used for secret doors. The door will not trigger until the damage exceeds the health value. | | ! bgcolor="#eeeeee" | ''health'' || If set to any value above 0, the door will only be activated by shooting it or hitting it with the axe. Often used for secret doors. The door will not trigger until the damage exceeds the health value. | ||
|- | |- | ||
− | | ! bgcolor="#eeeeee" | ''message'' || A message to display when | + | | ! bgcolor="#eeeeee" | ''message'' || A message to display when the door triggers. |
|- | |- | ||
| ! bgcolor="#eeeeee" | ''sounds'' || Type of sounds produced by the entity when triggered. The selection is limited to the following options: | | ! bgcolor="#eeeeee" | ''sounds'' || Type of sounds produced by the entity when triggered. The selection is limited to the following options: | ||
Line 57: | Line 40: | ||
| ! bgcolor="#eeeeee" | ''noise1'' || The sound to play when motion stops if custom sounds are being used | | ! bgcolor="#eeeeee" | ''noise1'' || The sound to play when motion stops if custom sounds are being used | ||
|- | |- | ||
− | | ! bgcolor="#eeeeee" | '' | + | | ! bgcolor="#eeeeee" | ''Damage'' || The amount of damage to apply to an entity that attempts to block the motion of the door. |
|} | |} | ||
===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. It also has the following additional flags: |
− | + | * Starts open : The entity is moved to the open position for it's initial state | |
− | + | * Don't link : Restricts the entity from being linked to a matching door (preventing it from opening as part of a pair) | |
− | + | * Gold key required : The entity will not move unless the player has collected the Gold Key | |
− | + | * Silver key required : The entity will not move unless the player has collected the Silver key | |
− | + | * Toggle : The entity will toggle between open and closed states instead of automatically closing after a delay | |
− | + | {{todo|user=Hectate|todo=Get the specific titles of the above spawnflags and update it into a wikitable also.}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | It also has the following additional flags | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |} | ||
− | |||
[[Category:Quake entities]] | [[Category:Quake entities]] |