Func weight button: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{lang|title=func_weight_button}}
{{lang|title=func_weight_button}}
{{entity|func_weight_button|type=e2}}
{{entity|func_weight_button|type=e2|series=Portal}}


==Entity description==
==Entity description==

Revision as of 08:37, 24 January 2023

English (en)Translate (Translate)

Template:Entity

Entity description

It is a 'Button' which activates after a specified amount of weight is touching it.

Keyvalues

Amount of weight required before this button activates. (WeightToActivate) <float>
Amount of weight required before this button activates.
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

Inputs

Outputs

OnPressed
Fired when the button is touching enough weight.
OnReleased
Fired when the button was pressed, but weight was removed.