Key press interface event not firing or being received

My actor isn’t receiving any call from my pawn firing an event via key press.

I have the BP interface on my actors in the world. It has 1 function which is “hide actor”.

My pawn then calls the interface event “hide actor” when a key is pressed.

I press the H key, it triggers and seems fine but my actors in the world are not receiving this call whatsoever. There’s nothing happening and non of the lines in debug are highlighting to show that the key press has been received.

Am I doing this wrong?

world actor: has BP interface with function “hide actor”.

I copy this actor several times across the map.

I just want my key press to hide these actors when I press the key. I thought using an interface would be an easy and clean way to achieve this.

Can someone tell me how this is wrong please?

Either your not properly calling it on the other actor or your not triggering it correctly on your bp character, would you be able to show us what exactly you are talking about. Images help a lot when debugging since text is much harder to determine the exact issue.

Hi thank you,

So as it turns out I didn’t think I needed to do any referencing to classes/ actors when it came to interfaces. As soon as I did a for each loop to check for all actors with interface, the event then fired correctly as expected.

I thought I could just set my actor up with an interface and pull off from the interface event what I wanted to happen. Then just call the interface from my pawn when I pressed a key. I didn’t know I needed to look for any actors with the interface first.

1 Like