Right Object to Cast from Widget Blueprint to NPC Blueprint?

I use Get Player Pawn to set my data variables in UI. You might give that a try instead of getting the character.

Hi,

I want my NPC to become agressive when the player gives certain ansers during NPC-Dialogue. For this i want to cast (from my widget blueprint) to the NPC when a certain button from the widget is clicked, but it does not work. I think i have the wrong object, but i do not know what other objects I should put there.

Thanks, but it doesn’t work either. Maybe it has something to do with the direction i am trying to communicate being different (widget to npc)?

I communicate to the pawn from widgets regularly so I’m sure it’s just an oversight somewhere. I quick trick to figure out what your accessing is to run a Print String node at the end and attach the pawn/character reference to it so you can see what reference your trying to communicate with. Once you know if your communicating with the correct reference it should work fine.