Func weight button: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Robot: fixing template case.)
(Cleanup)
Line 1: Line 1:
{{wrongtitle|title=func_weight_button}}
{{portal series point|func_weight_button}} It is a 'Button' which activates after a specified amount of weight is touching it.
==Entity Description==
 
'Button' which activates after a specified amount of weight is touching it.
== Keyvalues ==
==Keyvalues==
{{KV|Amount of weight required before this button activates.|float|Amount of weight required before this button activates.}}
*{{KV Targetname}}
{{KV Targetname}}
*{{KV Parentname}}
 
*{{KV RenderFields}}
== Inputs ==
*'''WeightToActivate'''
{{I Targetname}}
: <float> Stress to activate
 
==Inputs==
== Outputs ==
*{{I Targetname}}
{{IO|OnPressed|Fired when the button is touching enough weight.}}
*{{I Parentname}}
{{IO|OnReleased|Fired when the button was pressed, but weight was removed.}}
*{{I RenderFields}}
{{O Targetname}}
==Outputs==
*{{O Targetname}}
*'''OnPressed'''
: Fired when activated
*'''OnReleased'''
: Fired when deactivated
[[Category:Half-Life 2: Episode One Entities]][[Category:Portal Entities]]

Revision as of 15:52, 31 July 2011

Template:Portal series point It is a 'Button' which activates after a specified amount of weight is touching it.

Keyvalues

Amount of weight required before this button activates. ([todo internal name (i)]) <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.