Prop floor cube button: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Document Suppress Animation Sounds kyevalue)
m (updated template usage.)
Line 1: Line 1:
[[File:prop_floor_cube_button.png|right|thumb|Model of a prop_floor_cube_button.]]
{{lang|{{PAGENAME}}}}
 
[[File:prop_floor_cube_button.png|right|thumb|Model of a <tt>[[prop_floor_cube_button]]</tt>.]]
{{portal2 point|prop_floor_cube_button}}
 
==Entity description==
It is a floor button which is activated by a [[prop_weighted_cube]].


{{portal2 point|prop_floor_cube_button}} It is a floor button that is activated by a {{ent|prop_weighted_cube}}.
{{clr}}
==Keyvalues==
==Keyvalues==
{{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 Targetname}}
{{KV BaseEntity|l4d=1|noscroll=0}}
{{KV Parentname}}
{{KV BaseAnimating|portal2=1|noscroll=0}}
{{KV Angles}}


==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 Targetname}}
{{I BaseEntity|as=1|noscroll=0}}
{{I Parentname}}
{{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 Targetname}}
{{O BaseEntity}}
{{O BaseAnimating|portal2=1}}

Revision as of 12:00, 20 October 2022

English (en)Translate (Translate)

Template:Portal2 point It is a floor button that is activated by a prop_weighted_cube.

Keyvalues

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.
Note.pngNote:Content moved to Rendering and studio model related KIO/Keyvalues for continuation of page history

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.
Note.pngNote:Content moved to Rendering and studio model related KIO/Inputs for continuation of page history

Outputs

OnPressed
Called when the button has been pressed.
OnUnPressed
Called when the button has been unpressed.
Note.pngNote:Content moved to Rendering and studio model related KIO/Outputs for continuation of page history