How do I trigger input only when within the bounds of an object's collision?

In my player character blueprint, there is an EnhancedInputAction event that is triggered when the left mouse button is pressed. When the input is triggered, it communicates to my actor blueprint which then executes several functions.

This communication works fine, but the input can be triggered at any moment, which is causing issues. I only want the input to be triggered if the player is in the collision area of my actor, sort of like only being able to open a door when you are near it. At the same time, the player should be able to use and trigger the input at some point.

1 Like

You just need a collision volume around the actor that enables the input. Youtube is literally drowning in tutorials for this sort of thing :slight_smile:

1 Like

Thank you for sharing this! I’ll give these resources a look. :+1:

1 Like