func_button_timed
Jump to navigation
Jump to search
Code classes:
CButtonTimed
CBaseButton
CBaseToggle
CBaseEntity
(all ents)
func_button_timed
is a brush entity present in both Left 4 Dead games. It's a button that must be held down for a period of time.
Keyvalues[edit | edit source]
- Use Time
(use_time)
<integer>
- The amount of time the button must be held for.
- Use String
(use_string)
<string>
- Text that will appear to the presser.
- Auto-Disable On Time Up
(auto_disable)
<boolean>
- Makes the button automatically disable itself once the timer is up.
- Use Sub-String
(use_sub_string)
<string>
(only available in)
- Text that will appear under Use String.
Inputs[edit | edit source]
- Enable
- Makes the entity active.
- Disable
- Makes the entity inactive.
Outputs[edit | edit source]
- OnUnPressed
- Fires when the player halts the button-pressing before the timer completes.
- OnTimeUp
- Fires when the player has finally held down the button for long enough.