Cleanup is going to take awhile, so the site is back up but editing has been disabled.
Func door rotating
From HalfLife 2 Knowledge Base
Contents |
[edit]
func_door_rotating
Source(core) Solid Entity
[edit]
description
A brush entity for use as a rotating player-useable door.
[edit]
properties
- Speed speed(integer) - default: 100
The speed at which the door moves. - Master (Obsolete) master(string)
Legacy support - Start Sound noise1(sound)
Sound to play when the door starts moving. - Stop Sound noise2(sound)
Sound to play when the door stops moving. - Delay Before Reset (-1 stay) wait(integer) - default: 4
Amount of time, in seconds, after the door has opened before it closes. Once it has closed, it can be used again. If the value is set to -1, the door never closes itself. - Lip lip(integer) - default: 0
The amount, in inches, of the button to leave sticking out of the wall it recedes into when pressed. Negative values make the button recede even further into the wall. - Blocking Damage dmg(integer) - default: 0
Amount of damage done to entities that block the movement of this door, per frame. - Force Closed forceclosed(choices) - default: If set, this door will close no matter what. Useful for doors that have to close even if the player tries to block them with objects.
- 0 - No
- 1 - Yes
- Message If Triggered message(string)
- Health (shoot open) health(integer) - default: 0
- Locked Sound locked_sound(sound)
Sound played when the player tries to use the door, and fails because it's locked. - Unlocked Sound unlocked_sound(sound)
Sound played when the button is door. - Locked Sentence locked_sentence(choices) - default: A sentence played when the player tries to use the door, and fails because it's locked.
- 0 - None
- 1 - Gen. Access Denied
- 2 - Security Lockout
- 3 - Blast Door
- 4 - Fire Door
- 5 - Chemical Door
- 6 - Radiation Door
- 7 - Gen. Containment
- 8 - Maintenance Door
- 9 - Broken Shut Door
- Unlocked Sentence unlocked_sentence(choices) - default: A sentence played when the door is unlocked.
- 0 - None
- 1 - Gen. Access Granted
- 2 - Security Disengaged
- 3 - Blast Door
- 4 - Fire Door
- 5 - Chemical Door
- 6 - Radiation Door
- 7 - Gen. Containment
- 8 - Maintenance area
- Minimum Light Level _minlight(string)
The minimum level of ambient light that hits this brush. - Loop Moving Sound? loopmovesound(choices) - default: If set to true, the door's 'Start Sound' will be continually looped until the door finishes moving.
- 0 - No
- 1 - Yes
- Origin (X Y Z) origin(origin)
The position of this entity's center in the world. Rotating entities typically rotate around their origin. - Pitch Yaw Roll (Y Z X) angles(angle) - default: 0 0 0
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis. - Distance distance(integer) - default: 90
The amount, in degrees, that the button should rotate when it's pressed. - Solid Type solidbsp(choices)
- 0 - VPhysics
- 1 - BSP
[edit]
spawn flags
- 1: Starts Open - default: OFF
- 4: Non-solid to Player - default: OFF
- 8: Passable - default: OFF
- 32: Toggle - default: OFF
- 256: Use Opens - default: OFF
- 512: NPCs Can't - default: OFF
- 1024: Touch Opens - default: ON
- 2048: Starts locked - default: OFF
- 4096: Door Silent - default: OFF
- 2: Reverse Dir - default: OFF
- 16: One-way - default: OFF
- 64: X Axis - default: OFF
- 128: Y Axis - default: OFF
[edit]
inputs
- Kill(void)
Removes this entity from the world. - KillHierarchy(void)
Removes this entity and all its children from the world. - AddOutput(string)
Adds an entity I/O connection to this entity. Format - FireUser1(void)
Causes this entity's OnUser1 output to be fired. - FireUser2(void)
Causes this entity's OnUser2 output to be fired. - FireUser3(void)
Causes this entity's OnUser3 output to be fired. - FireUser4(void)
Causes this entity's OnUser4 output to be fired. - SetParent(string)
Changes the entity's parent in the movement hierarchy. - SetParentAttachment(string)
Change this entity to attach to a specific attachment point on it's parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment. - ClearParent(void)
Removes this entity from the the movement hierarchy, leaving it free to move independently. - DisableShadow(void)
Turn shadow off. - EnableShadow(void)
Turn shadow on. - Open(void)
Open the door, if it is not fully open. - Close(void)
Close the door, if it is not fully closed. - Toggle(void)
Toggle the door between open and closed. - Lock(void)
Lock the door. - Unlock(void)
Unlock the door. - SetSpeed(float)
Set the door speed.
[edit]
outputs
- OnUser1(void)
Fired in response to FireUser1 input. - OnUser2(void)
Fired in response to FireUser2 input. - OnUser3(void)
Fired in response to FireUser3 input. - OnUser4(void)
Fired in response to FireUser4 input. - OnClose(void)
Fired when the door starts closing. - OnOpen(void)
Fired when the door starts opening. - OnFullyOpen(void)
Fired when the door reaches the fully open position. - OnFullyClosed(void)
Fired when the door reaches the fully closed position. - OnBlockedClosing(void)
Fired when the door is blocked while closing. - OnBlockedOpening(void)
Fired when the door is blocked while opening. - OnUnblockedClosing(void)
Fired when the door is unblocked while closing. - OnUnblockedOpening(void)
Fired when the door is unblocked while opening.
[edit]
related tutorials
Submit your tutorial for func_door_rotating

