prop_interactable is a point entity available with any version of Mapbase.

A prop designed to be interacted with like a button. It has all of the properties of prop_dynamic without having to use an accompanying func_door or func_button.



KeyValues

- Start locked (Locked) <choices>
If set, this prop_interactable will start locked, making it uninteractable.
- Cooldown (SetCooldown) <float>
The amount of time after this prop_interactable is used before it can be interacted with again. This is always based on when the prop_interactable was pressed, disregarding any active In Sequence, but an optional Out Sequence will play after the cooldown is over. It is also used when the prop_interactable is locked. Set to -1 to have an infinite cooldown when pressed while unlocked.
- Pressed Sound (PressedSound) <sound>
The sound to play when the button is successfully pressed.
- Locked Sound (LockedSound) <sound>
The sound to play when the button is interacted with while locked.
- In Sequence (InSequence) <string>
Optional sequence to play when the button is pressed, representing a button going 'in'.
- Out Sequence (OutSequence) <string>
Optional sequence to play after the button was interacted with and the cooldown is finished, representing a button coming back 'out' after an 'in' animation.
- Locked Sequence (LockedSequence) <string>
Optional sequence to play when the prop_interactable is interacted with while locked.
- +USE Mins (use_mins) <vector>
Optional box for only permitting +USE interactions within. The prop_interactable should not change its angles while this is used.
- +USE Maxs (use_maxs) <vector>
Optional box for only permitting +USE interactions within. The prop_interactable should not change its angles while this is used.

Flags

- [512] +USE interactable : 512
- [1024] Touch interactable : 1024
- [2048] Disable interaction commands when locked : 2048
- [4096] Radius use : 4096

Inputs

- Lock <void>
Locks this prop_interactable, making it uninteractable.
- Unlock <void>
Unlocks this prop_interactable, making it interactable.
- Press <void>
Presses this prop_interactable as if someone interacted with it.
- EnableUseInteraction <void>
Enables use interaction if it was disabled before.
- DisableUseInteraction <void>
Disables use interaction if it was enabled before.
- EnableTouchInteraction <void>
Enables touch interaction if it was disabled before.
- DisableTouchInteraction <void>
Disables touch interaction if it was enabled before.
- StartIgnoringCommandsWhenLocked <void>
Starts ignoring commands when this prop_interactable is locked.
- StopIgnoringCommandsWhenLocked <void>
Stops ignoring commands when this prop_interactable is locked.
- EnableRadiusInteract <void>
Enables radius use.
- DisableRadiusInteract <void>
Disables radius use.

Outputs

- OnPressed <void>
Fired whenever the prop is interacted with.
- OnLockedUse <void>
Fired whenever the button is interacted with while locked.
- OnIn <void>
Fired whenever the prop completes its 'In' animation.
- OnOut <void>
Fired whenever the prop completes its 'Out' animation.