Event dispatcher doesn't work with mouse click event... why?

Hello
There is a problem using event dispatchers and I don’t know how to fix it.
I made an event dispatcher and called it in a blueprint after [Beginplay], and it worked well.
However it doesn’t work after mouse click events or keyboard press events.

I tried things like enabling input actions or using a boolean and event tick to control the call, but nothing worked.

Is there something that I don’t now about controlling input actions?
I’m new at UE5 so I might be the problem.

Could it be that it’s not the event dispatcher at fault but the input is simply not processed? Where are you using it and how?

I’m new at UE5 so I might be the problem.
Is there something that I don’t now about controlling input actions?

Probably A LOT since it’s a maze… For example, regular actors do not even process input, not by default.

So… this is how I scripted it.
The print text worked well after mouse click, but the bounded event didn’t work.

Regarding the BPChar player ref in the pic on the left, in the TEst BP:

  • you’ve created a variable that can reference the player - that’s great
  • how did you assign it value, though? Because creating a var is not enough, you need to also tell the engine which player instance you mean even if there is only one.

Instead of the variable, try:

2 Likes

Solved it! Thank you so much!

I thought that the variable reference just has to be the character object, so I just put the object at the level.
Didn’t consider about the spawn mechanism that was already made from the first person template.

Have a great day :slight_smile:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.