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. |
− |
| |
− | === Movement ===
| |
− | When triggered, doors move in a straight line until fully open, then wait a short time, then close by moving back to the starting position. The direction of travel is controlled by the ''angle'' value. The distance traveled is equal to the width of the door in that direction, less an amount specified by the ''lip'' value.
| |
− |
| |
− | === Triggering ===
| |
− | By default doors will automatically open when a player or monster is near, and close when they leave. This only happens if the door is not locked and doesn't have a ''targetname''.
| |
− |
| |
− | If a door has a ''targetname'', it will only open if another entity triggers it, such as a button or trigger.
| |
− |
| |
− | If a door is locked, it will only open if the player touches it while holding the correct key. If this happens, the door will open and stay open permanently, and the player loses the key.
| |
− |
| |
− | === Message ===
| |
− | A locked door, or a door with a ''targetname'', will display a ''message'' if the player touches it while it is closed (except when the player has the key for the locked door.)
| |
− |
| |
− | === Linking ===
| |
− | By default multiple doors that touch (or have overlapping bounding boxes) will be linked, so that if one opens they will all open. This can be used to make a multi-part door. To disable this behavior use the "Don't Link" spawnflag.
| |
| | | |
| == Attributes == | | == Attributes == |