Prop floor cube button: Difference between revisions

From Valve Developer Community
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.)
(-added class hierarchy, cleanup)
Line 1: Line 1:
{{lang|{{PAGENAME}}}}[[File:prop_floor_cube_button.png|right|thumb|Model of a <tt>[[prop_floor_cube_button]]</tt>.]]
{{lang|{{PAGENAME}}}}
 
{{CD|???|base=CBaseAnimating}}
[[File:prop_floor_cube_button.png|right|thumb|Model of a <tt>[[prop_floor_cube_button]]</tt>.]]
{{this is a|point entity|game=Portal 2|name=prop_floor_cube_button}} It is a floor button that is activated by a {{ent|prop_weighted_cube}}.
{{this is a|point entity|game=Portal 2|name=prop_floor_cube_button}} It is a floor button that is activated by a {{ent|prop_weighted_cube}}.
{{clr}}
{{clr}}
==Keyvalues==
==Keyvalues==
{{KV Targetname}}
{{KV|SuppressAnimSounds|bool|Prevent the button from playing any sounds.|nofgd=1}}
{{KV|SuppressAnimSounds|bool|Prevent the button from playing any sounds.|nofgd=1}}
{{KV|Accepts Balls|boolean|If this button gets activated by the spherical cubes? Should always be False.}}
{{KV|Accepts Balls|boolean|If this button gets activated by the spherical cubes? Should always be False.}}
{{KV BaseEntity|l4d=1|noscroll=0}}
{{KV BaseAnimating|portal2=1|noscroll=0}}


==Inputs==
==Inputs==
{{IO|PressIn|Activate the button as if it was pressed, sending it to the bottom position.}}
{{IO|PressIn|Activate the button as if it was pressed, sending it to the bottom position.}}
{{IO|PressOut|Unpress the button, sending it to the top position.}}
{{IO|PressOut|Unpress the button, sending it to the top position.}}
{{I BaseEntity|as=1|noscroll=0}}
{{I BaseAnimating|portal2=1|tf2=|noscroll=0}}


==Outputs==
==Outputs==
{{IO|OnPressed|Called when the button has been pressed.}}
{{IO|OnPressed|Called when the button has been pressed.}}
{{IO|OnUnPressed|Called when the button has been unpressed.}}
{{IO|OnUnPressed|Called when the button has been unpressed.}}
{{O BaseEntity}}
{{O BaseAnimating|portal2=1}}

Revision as of 13:13, 2 July 2024

English (en)Translate (Translate)
C++ Class hierarchy
???
CBaseAnimating
CBaseEntity

prop_floor_cube_button is a point entity available in Portal 2 Portal 2. It is a floor button that is activated by a prop_weighted_cube.

Keyvalues

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

SuppressAnimSounds ([todo internal name (i)]) <boolean> !FGD
Prevent the button from playing any sounds.
Accepts Balls ([todo internal name (i)]) <boolean>
If this button gets activated by the spherical cubes? Should always be False.

Inputs

PressIn
Activate the button as if it was pressed, sending it to the bottom position.
PressOut
Unpress the button, sending it to the top position.

Outputs

OnPressed
Called when the button has been pressed.
OnUnPressed
Called when the button has been unpressed.