Func door rotating: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (domchichialr)
m (revert)
Line 1: Line 1:
monnorac
{{wrongtitle|title=func_door_rotating}}
{{wrongtitle|title=func_door_rotating}}


==Entity Description==
== Entity description ==
A [[brush entity]] for use as a rotating player-useable door. (For a sliding door, use [[func_door]] instead.) Normally [[Source]] games will use [[prop_door_rotating]] entities using special ''door models''. This entity is only suitable if no such model exists for the door. Either its brush can be shaped into a door with a door texture, or, if a non-door model exists, a [[prop_dynamic]] using the model can be parented to a little nodrawed func_door_rotating at the rotating origin.
A [[brush entity]] for use as a rotating player-useable door. (For a sliding door, use [[func_door]] instead.) Normally [[Source]] games will use [[prop_door_rotating]] entities using special ''door models''. This entity is only suitable if no such model exists for the door. Either its brush can be shaped into a door with a door texture, or, if a non-door model exists, a [[prop_dynamic]] using the model can be parented to a little nodrawed func_door_rotating at the rotating origin.


To make a pair of doors open and close together, give them the same '''targetname'''.
To make a pair of doors open and close together, give them the same '''targetname'''.


==Keyvalues==
== Keyvalues ==
* {{kv door}}
* {{kv door}}
* {{kv origin}}
* {{kv origin}}
Line 16: Line 15:
: {{boolean}} If set, use VPhysics, otherwise use BSP.
: {{boolean}} If set, use VPhysics, otherwise use BSP.


==Flags==
== Flags ==
* 1 : Starts Open - This door spawns open.
* 1 : Starts Open - This door spawns open.
* 2 : Reverse Dir - This door opens in the opposite direction.
* 2 : Reverse Dir - This door opens in the opposite direction.
Line 31: Line 30:
* 4096 : Door Silent - This door makes no noise.
* 4096 : Door Silent - This door makes no noise.


==Inputs==
== Inputs ==
* {{i door}}
* {{i door}}


==Outputs==
== Outputs ==
* {{o targetname}}
* {{o targetname}}
* {{o door}}
* {{o door}}


==See Also==
== See also ==
* [[prop_door_rotating]]
* [[prop_door_rotating]]
* [[func_door]]
* [[func_door]]


[[Category:Entities]][[Category:Brush Entities]]
[[Category:Entities]]
[[Category:Brush Entities]]

Revision as of 01:10, 1 February 2008

Template:Wrongtitle

Entity description

A brush entity for use as a rotating player-useable door. (For a sliding door, use func_door instead.) Normally Source games will use prop_door_rotating entities using special door models. This entity is only suitable if no such model exists for the door. Either its brush can be shaped into a door with a door texture, or, if a non-door model exists, a prop_dynamic using the model can be parented to a little nodrawed func_door_rotating at the rotating origin.

To make a pair of doors open and close together, give them the same targetname.

Keyvalues

<integer> The amount, in degrees, that the door should rotate when it's opened.
  • solidbsp
<boolean> If set, use VPhysics, otherwise use BSP.

Flags

  • 1 : Starts Open - This door spawns open.
  • 2 : Reverse Dir - This door opens in the opposite direction.
  • 4 : Non-solid to Player - This door does not collide with the player or NPCs.
  • 8 : Passable - This door does not collide with anything.
  • 16 : One-way - This door only opens in one direction.
  • 32 : Toggle - This door switches between open and closed on each input.
  • 64 : X Axis - This door rotates on the X axis.
  • 128: Y Axis - This door rotates on the Y axis.
  • 256 : Use Opens - The +use key triggers this door.
  • 512 : NPCs Can't - NPCs can't use this door.
  • 1024 : Touch Opens - Collision with the door triggers it.
  • 2048 : Starts locked - This door spawns locked to the player or NPCs (though an input can still trigger it).
  • 4096 : Door Silent - This door makes no noise.

Inputs

Outputs

See also