Func weight button: Difference between revisions
Jump to navigation
Jump to search

m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) |
m (→Outputs: Substituted IO templates) |
||
Line 10: | Line 10: | ||
== Outputs == | == Outputs == | ||
{{ | {{O|OnPressed|Fired when the button is touching enough weight.}} | ||
{{ | {{O|OnReleased|Fired when the button was pressed, but weight was removed.}} |
Revision as of 21:48, 19 April 2025



![]() |
---|
CWeightButton |
![]() |
func_weight_button
is a brush entity available in all Source games. It is a 'Button' which activates after a specified amount of weight is touching it.
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Amount of weight required before this button activates. (WeightToActivate) <float>
- Amount of weight required before this button activates.
Outputs
- OnPressed
- Fired when the button is touching enough weight.
- OnReleased
- Fired when the button was pressed, but weight was removed.