Calling a function from another class
To call a function in your EnemyCharacter.cpp, you need a pointer to that object and the function you want to call GetIsFrozen() needs to be declared "public" in EnemyCharacter.h.
I'm assuming by the filename that EnemyCharacter is of class Character and is the same entity as PlayerPawn (ACharacter is a subclass of APawn) you get with the call:
Im also assuming that GetIsFrozen() returns a bool indicating whether the character is frozen or not.
So I think if you moved your PlayerPawn declaration/initialization line before your AEnemyCharacter* line then your EnemyCharacter line can be like the second line below:
(By the way, I would have thought you would have APawn* PlayerPawn... rather than using auto but maybe there is something you are doing that I cannot see and therefore don't understand).
The remaining TODOs are to call the function to obtain the bool result and use that in an IF statement (assuming you only want the blackboard targeting to occur if IsFrozen is true):
Hopefully I've made the right assumptions and this is helpful. I'm pretty sure this works but haven't tested the code myself.
Follow this question
Once you sign in you will be able to subscribe for any updates here