A Problem about calling Interface function

Hey, now I have a question. The player is Protagonist. When Protagonist die, I set “is dead” to “true”. But in enemy blueprint, I try to calling interface function “dead” whose return node is “is dead”, the return value is still false. I do not know why.


where is the node when you actually set the bool isDead to be true?

You are calling the interface on the player controller. The object that implements the interface is the player character blueprint.

Get the player pawn and try calling the interface function Dead on it.
The call now fails because the controller does not implement the interface hence it will always fail.

I have known the reason.

OK.Thank you. I understand.

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