func_weight_button
...
class hierarchy |
---|
CWeightButton defined in weight_button.cpp
|
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
Targetname:
- Name
(targetname)
<string> - The targetname that other entities refer to this entity by.
- 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.