CPropButton
(Redirected from Prop button)
Jump to navigation
Jump to search
Code classes:
CPropButton
CBaseAnimating
(models)CBaseEntity
(all ents)
CPropButton
is a code class in Portal 2.
Classnames:
prop_button
- Pedestal button.
Keyvalues[edit | edit source]
- Delay Before Reset
(Delay)
<float>
- Makes the button stay in its pressed position for this many seconds.
- Play timer sound?
(istimer)
<boolean>
- If Delay Before Reset is non-zero, plays a ticking sound while the button is pressed. Allows the button timer to be reset while it's active.
- Prevent fast reset?
(preventfastreset)
<boolean>
- If Play timer sound? is set to Yes, prevents the button timer from being reset while it's active. The button will also not allow fast resets if both keyvalues are set to No.
- Skin
(skin)
<choices>
- Appearance of the button.
- 0: Clean
- 1: Rusted
Inputs[edit | edit source]
- Press
- Presses the button as if a player did.
- Lock
- Prevents the button from being pressed.
- UnLock
- Allows the button to be pressed.
- CancelPress
- Causes the button to reset quietly and without firing the OnButtonReset output.
Outputs[edit | edit source]
- OnPressed
- Fires when the button is pressed.
- OnPressedBlue
- Fires when the button is pressed by ATLAS.
- OnPressedOrange
- Fires when the button is pressed by P-Body.
- OnButtonReset
- Fires when the button timer expires.