Trying to make it so that when the player clicks on a placed blueprint in the world and gets in range it then does the custom event

Hi all, i’m new to blueprints and just kind of throwing youtube tutorials together.

im wondering if anyone is able to help me with this?

i’m trying to make it so that when the player clicks on the blueprint which ive placed in the world (player clicks on a tree) the player will move to the location where clicked and then will execute the custom event.

this is in my player controller.

i’ve tried setting up box collisions in the tree blueprint and player blueprint and casted to the custom event interactbpskills but the player still gets exp from a distance and not only when the player is net to the tree.

any help is appreciated :slight_smile:

AI MoveTo command probably not working since you’re using player controller not ai controller. Try using Simple Moveto instead?

Or, depending on what type of game you’re making you could make the player pawn use an AI controller, and have the player controller possess an invisible spectator actor, and just sends commands to the pawn. This could work well for a sim game of some sort, but not so much if there’s fast action.

This is my movement from the example top down template.

How would I go about making it only execute the custom event interactBPSkills when the player is next to the area i want him to be?

ive tried setting up a box overlap but im missing something in the way the code executes its sequence.