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

m (→Outputs: Substituted IO templates) |
No edit summary |
||
Line 1: | Line 1: | ||
{{LanguageBar}} | |||
{{Ent not in fgd|none|except={{portal}}{{portal2}}}} | {{Ent not in fgd|none|except={{portal}}{{portal2}}}} | ||
{{CD|CWeightButton|file1=weight_button.cpp}} | {{CD|CWeightButton|file1=weight_button.cpp}} | ||
{{this is a|brush entity|name=func_weight_button}} It is a 'Button' which activates after a specified amount of weight is touching it. | {{this is a|brush entity|name=func_weight_button|except=Source SDK Base 2006}} It is a 'Button' which activates after a specified amount of weight is touching it. | ||
== Keyvalues == | == Keyvalues == | ||
Line 10: | Line 9: | ||
== Outputs == | == Outputs == | ||
{{O|OnPressed|Fired when the button is touching enough weight.}} | {{O|OnPressed|ac-is-this=1|Fired when the button is touching enough weight.}} | ||
{{O|OnReleased|Fired when the button was pressed, but weight was removed.}} | {{O|OnReleased|ac-is-this=1|Fired when the button was pressed, but weight was removed.}} |
Revision as of 17:24, 19 May 2025



![]() |
---|
CWeightButton |
![]() |
func_weight_button
is a brush entity available in all Source games except
Source SDK Base 2006. 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
- !activator = !caller = this entity
Fired when the button is touching enough weight.
- OnReleased
- !activator = !caller = this entity
Fired when the button was pressed, but weight was removed.