prop_interactable
Jump to navigation
Jump to search

Note: Other
| CInteractableProp |
prop_interactable is a model entity available in
Mapbase. It's 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
Keyvalues / Inputs / Outputs are same as prop_dynamic.- Start Locked (Locked) <boolean>
- 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.
- +USE Mins (use_mins) <vector3>
- Optional box for only permitting +USE interactions within. The prop_interactable should not change its angles while this is used.
- +USE Maxs (use_maxs) <vector3>
- Optional box for only permitting +USE interactions within. The prop_interactable should not change its angles while this is used.
Flags
BreakableProp:
- Break on Touch : [16]
- Break on Pressure : [32]
- Will break after being stood on for
PressureDelayseconds.
Note: Some models will break instantly if this is or isn't set. (e.g. militiawindow02_breakable.mdl,window_industrial.mdl)
DynamicProp:
- Use Hitboxes for Renderbox : [64]
- Disable VPhysics collision : [128] !FGD
- Start with collision disabled : [256]
CInteractableProp:
- +USE interactable : [512]
- Touch interactable : [1024]
- Disable interaction commands when locked : [2048]
- Radius use : [4096]
Inputs
- Lock
- Locks this prop_interactable, making it uninteractable.
- Unlock
- Unlocks this prop_interactable, making it interactable.
- Press
- Presses this prop_interactable as if someone interacted with it.
- EnableUseInteraction
- Enables use interaction if it was disabled before.
- DisableUseInteraction
- Disables use interaction if it was enabled before.
- EnableTouchInteraction
- Enables touch interaction if it was disabled before.
- DisableTouchInteraction
- Disables touch interaction if it was enabled before.
- StartIgnoringCommandsWhenLocked
- Starts ignoring commands when this prop_interactable is locked.
- StopIgnoringCommandsWhenLocked
- Stops ignoring commands when this prop_interactable is locked.
- EnableRadiusInteract
- Enables radius use.
- DisableRadiusInteract
- Disables radius use.
Outputs
- OnPressed
- Fired whenever the prop is interacted with.
- OnLockedUse
- Fired whenever the button is interacted with while locked.
- OnIn
- Fired whenever the prop completes its 'In' animation.
- OnOut
- Fired whenever the prop completes its 'Out' animation.