Skip to content

Actor Interactable Component

Dominik Pavlíček edited this page Dec 20, 2022 · 6 revisions

About

TBA

Events

List of Events in general Interactable Component. Implements IActorInteractable interface events.

Interaction Events

OnInteractableSelected

Event called once Interactor selects any Interactable. Provides info which Interactable has been selected. Selected Interactable might differ to this one. In such case, this event calls OnInteractorLost and cancels any interaction which might be in progress. This event is called on all Interactables who has Interactor who invoked this event. Has native C++ implementation. Calls OnInteractableSelectedEvent.

OnInteractorFound

Event called once Interactor is found. Provides info which Interactor is found. This event doesn't usually start the interaction, only notifies that this Interactable has found an Interactor. Called by OnInteractorFound.

OnInteractorLost

Event called once Interactor is lost. Provides info which Interactor is lost. This event is usually the first one in chain leading to Interaction Canceled. Called by OnInteractorLost.

OnInteractionCompleted

Event called once Interaction is completed. Provides information which Interactor caused this event. This event is the last event in chain. Called when Type is Once or after Lifecycles run out. Called from OnInteractionCompleted.

OnInteractionCycleCompleted

Event called once single Interaction Cycle is completed. Provides information which Interactor caused this event. Might be called multiple times, before 'OnInteractionCompleted' is called. Never called if Type is Once.

OnInteractionStarted

Event called once Interaction Starts. That might be from pressing a key or it might happen automatically. Provides information which Interactor caused this event. Called by OnInteractionStarted.

OnInteractionStopped

Event called once Interaction Stops. That might be from pressing a key or it might happen automatically. This event is different to Interaction Canceled!

  • Stops: Interaction is still active, only not happening
  • Cancels: Interaction is not active. Provides information which Interactor caused this event. Called by OnInteractionStopped.

OnInteractionCanceled

Event called once Interaction is Canceled. This event is called when Interactor is Lost, thus this Interactable cannot proceed with Interaction. Provides information which Interactor caused this event. Called by OnInteractionCanceled.

OnLifecycleCompleted

Event called once Interaction Lifecycles is Completed. Every time Lifecycle is completed, remaining lifecycles are lowered unless interaction is limiteless. Called by OnLifecycleCompleted.

OnCooldownCompleted

Event called once Interaction Cooldown is Completed and Interactable can be Interacted with again. Untill Cooldown is completed, interactions are disabled. Called by OnCooldownCompleted

OnInteractableDependencyChanged

Event called once any Interaction Dependency is changed, no matter if removed or added. Provides information which Dependency has been modified. Has no information if Dependency was Added or Removed.

Interaction Components Events

OnHighlightableComponentAdded

OnHighlightableComponentRemoved

OnCollisionComponentAdded

OnCollisionComponentRemoved

Interaction Helper Events

OnInteractableAutoSetupChanged

OnInteractableWeightChanged

OnInteractableStateChanged

OnInteractableOwnerChanged

OnInteractableCollisionChannelChanged

OnLifecycleModeChanged

OnLifecycleCountChanged

OnCooldownPeriodChanged

OnInteractorChanged

C++ only Events

InteractableDependencyStarted

InteractableDependencyStarted

Clone this wiki locally