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

Thunder4ik (talk | contribs) m (→top: Unicodifying, replaced: {{language subpage → {{langsp) |
(-added class hierarchy, cleanup, nofgd, all source games) |
||
Line 1: | Line 1: | ||
<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang}}{{this is a|e2|name=func_weight_button | <!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. --> | ||
{{lang}} | |||
{{Ent not in fgd|none|except={{portal}}{{portal2}}}} | |||
It is a 'Button' which activates after a specified amount of weight is touching it. | {{CD|CWeightButton|file1=weight_button.cpp}} | ||
{{this is a|e2|name=func_weight_button}} It is a 'Button' which activates after a specified amount of weight is touching it. | |||
== Keyvalues == | == Keyvalues == | ||
{{KV Targetname}} | |||
{{KV|Amount of weight required before this button activates.|intn=WeightToActivate|float|Amount of weight required before this button activates.}} | {{KV|Amount of weight required before this button activates.|intn=WeightToActivate|float|Amount of weight required before this button activates.}} | ||
== Outputs == | == Outputs == | ||
{{IO|OnPressed|Fired when the button is touching enough weight.}} | {{IO|OnPressed|Fired when the button is touching enough weight.}} | ||
{{IO|OnReleased|Fired when the button was pressed, but weight was removed.}} | {{IO|OnReleased|Fired when the button was pressed, but weight was removed.}} | ||
Revision as of 09:34, 18 February 2024



![]() |
---|
CWeightButton |
![]() |
func_weight_button
is an e2 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.