How can I detect when a character enters a trigger box using Blueprints in UE5?

Hi everyone,
I’m working on a small project in Unreal Engine 5 and I want to trigger an event when the player character enters a specific area marked by a Trigger Box.

I’m using Blueprints, and I’ve already placed a Trigger Box in the level, but I’m not sure how to correctly detect when the character overlaps with it and execute some logic (like showing a message or playing an animation).

Here are my questions:

  1. What is the correct way to bind an overlap event for a Trigger Box in Blueprints?
  2. Do I need to change any collision settings for the Trigger Box or the character?
  3. How can I ensure that the event only triggers for the player character, not other actors?

Any help or example screenshots would be greatly appreciated. Thanks a lot!

Depends if you want to make the trigger an Actor class to be able to place this actor in a level, or if you want to place a Box Collision (what you should be using for triggers) by itself and trigger logic through the Level Blueprint.
If you’re going to be using this trigger multiple times in your project, go with creating a Blueprint of class “Actor” (the default class), and there set a Box Collision as the root component.
If you’re going to be using this trigger once or very few times per level, go with the level blueprint, by placing needed box collision(s) in the level and adding code in the level blueprint.

In any case, in the blueprint, select your Box Collision component, and:
→ Make sure your Box Collision component has “Generate Overlap Events” on (Your player’s Capsule Collision should have it enabled too. Anything you want to be able to overlap this trigger will have to have “Generate Overlap Events” enabled and “Collision Enabled” (under “Collision Presets”) set to either “Collision Enabled (Query and Physics)” or “Query Only (No Physics Collision)”)
→ At the bottom of the details panel for it, find a green button which has text to the left saying “On Component Begin Overlap”. Click it. This will make a new event for you and open the Event Graph automatically. This event will now fire when anything with the correct settings (mentioned above) overlaps it, like the player. However, you need to check if what just overlapped it is actually a player. Do this:


And off of the “True” output from the Branch node goes all your required code. Hope this helps. Reply if you have any more questions!