Configuring Actors for Trigger Interactions
Setting up actor and triggers to work together
Last updated
Setting up actor and triggers to work together
Last updated
Once a spline trigger volume is set up, a small step is required for the actors that are going to interact with that trigger.
Select your collision component and add the On Component Begin Overlap and On Component End Overlap events by clicking the respective green "+" buttons in the details panel.
This will add the two engine events that dictate what happens when your actor's collision overlaps other collision in your scene. For each event, connect up the blueprint library function Volume Actor Test as shown in the screenshot below. Ensure that the Other Actor input is connected to the Other Actor reference from the event node, the Other Component input is connected to the Other Comp reference from the event node, that a reference to Self is connected up to the Interacting Actor input and that the New Overlap boolean is set to true for Begin Overlap and false for End Overlap.
This can be done on any actor that has a collision component. Once set up, you should see actors firing off the trigger (as long as their collision channel matches one defined in the volume actor).
Note that the Volume Actor Test node has an output boolean called Interaction Handled. This can be used when an actor requires multiple sets of overlap logic to know if the overlap was handled or not.