Interaction Component
Adding this to an actor effectively makes it into an interactable.
To make an actor able to handle interaction events you'll need to add this component to the actor.
This component has a set of bindable events and some properties to help you set up your interactions for your actors.
Functions
Bindable Events
On Interaction Started: Executed upon interaction start - Handle any logic you wish here upon interaction start.
On Interaction Triggered: Executed upon triggering the interaction. This is the most commonly used function, this is where your logic resides for what should happen when the when this actor has been interacted with.
On Interaction Release: Executed upon player releasing the interaction. Any logic that should happen upon releasing an interaction should be placed here. Example could be damaging the player upon releasing the interaction before it had finished.
On Interaction Cancelled: Executed upon cancelling the interaction. Any logic you want to happen if the interaction has been cancelled should be placed here.
Editable Properties
Interaction Execution Mode: Set the type of player interaction for this interactable here.
Custom Mode: The custom mode index
Time Length: Determines the length of Timed Interaction Execution mode, or when using the Execute Timed Event function.
Time Animation Curve: If you want to change the Timed Event progress update animation (default is linear) then set a curve here to change progress update animation beheavior.
Use Interaction Limit: Enables or Disables Use Interaction Limit. This allows you to only let this interactable to be interacted with a Certain amount of times.
Interaction Limit: Amount of times this interactable can be interacted with.
Last updated