Func elevator: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(major update)
Line 1: Line 1:
{{wrongtitle|title=func_elevator}}
{{brushmodel}}
{{note|The current description of this entity is based on unofficial data based on data mining. Anything that may be read here is largely incomplete or, in some cases, incorrect.}}


== Entity description==
== Entity description==
A [[Entity#Brush_entities|brush entity]] that's designed to be used for a player-usable button. When used by the player, it moves to a pressed position.
A brush entity that moves vertically.
{{brushmodel}}
 
For an example of a <code>func_elevator</code>, refer to a decompiled copy of Valve's 4th level of the No Mercy campaign.
For an example of a <code>func_elevator</code>, refer to a decompiled copy of Valve's 4th level of the No Mercy campaign.


Line 14: Line 13:


== Inputs ==
== Inputs ==
* '''MoveToFloor'''
* '''MoveToFloor''' Moves to the specified [[info_elevator_floor]]
* '''input Disable'''


== Outputs ==
== Outputs ==
* '''OnPressed'''
* '''OnReachedTop''' Fired when the brush reaches the top.
 
* '''OnReachedBottom''' Fired when the brush reaches the bottom.
== See also ==
* [[func_button]]

Revision as of 13:40, 19 July 2009

Template:Brushmodel

Entity description

A brush entity that moves vertically.

For an example of a func_elevator, refer to a decompiled copy of Valve's 4th level of the No Mercy campaign.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

  • Origin:
Origin (X Y Z) (origin) <origin>
The position of this entity's center in the world. Rotating entities typically rotate around their origin.
  • top
  • bottom

Inputs

Outputs

  • OnReachedTop Fired when the brush reaches the top.
  • OnReachedBottom Fired when the brush reaches the bottom.