func_buildable_button

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)
Obsolete-notext.png
This entity is Obsolete. Its use is discouraged, and it may only exist/function in older engine branches.

func_buildable_button is a brush entity available in Left 4 Dead 2 Left 4 Dead 2. It appears to be a brush based button similar to func_button_timed, intended to interface with VScripts instead of entity logic. It has likely been removed in favor of point_script_use_target.

Keyvalues

Cumulative Use (is_cumulative_use) <choices>
Whether to keep progress on the use time when the player releases the button.
  • 0: No
  • 1: Yes
Name (targetname) <string>
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

Parentname:
Parent (parentname) <targetname>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.

Origin:

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

Flags

  • 2048 : Starts locked

Inputs

Enable
Enable the button, so it glows and can be used.
Disable
Disable the button, so it can't be used and doesn't glow.


Parentname:
SetParent <string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <string>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset <string>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.

Outputs

OnPressed
Fired when the button is pressed.
OnUnPressed
Fired when the button is unpressed.
OnTimeUp
Fired when the button has been held more than the required amount of time.
OnUseLocked
Fired when the button is used while locked.