Script InteractableComponents

Components

interactable Marks an entity as interactable, allowing it to be touched to activate its effects
interactableCancelBounceTween Cancels the bounce animation on the interactor upon successful interaction
interactableConsumeItem Consumes an item from the interactor’s inventory
interactableFailFlyaway Creates a flyaway on failed interaction
interactableFailSwipe Creates a swipe on failed interaction
interactableResetDamageCountdown Reset interactor's damage countdown on successful interaction
interactableSelfDestruct Destroys the entity upon interaction
interactableTakeDamage Interactor deals damage to the entity upon interaction
interactor Allows an entity to touch interactable objects, activating them


Components

interactable
Marks an entity as interactable, allowing it to be touched to activate its effects
  • active bool (default true)
interactableCancelBounceTween
Cancels the bounce animation on the interactor upon successful interaction
interactableConsumeItem
Consumes an item from the interactor’s inventory
  • component constant string (default "")
interactableFailFlyaway
Creates a flyaway on failed interaction
  • text constant localizedString (default 0)
  • duration constant float (default 1.5)
  • distance constant int (default 18)
interactableFailSwipe
Creates a swipe on failed interaction
  • type constant string (default "")
interactableResetDamageCountdown
Reset interactor's damage countdown on successful interaction
  • active bool (default true)
interactableSelfDestruct
Destroys the entity upon interaction
interactableTakeDamage
Interactor deals damage to the entity upon interaction
  • damage constant int (default 1)
  • type constant int (default damage.Type.PHYSICAL)
interactor
Allows an entity to touch interactable objects, activating them
generated by LDoc 1.4.6