There is 3 way in my knowledge to do this:
-
Put that function into your player controller blueprint. That way all you have to do is get your current player cotnroller, cast to it’s class then call the function.
-
Put one instance of the class in the scene, hide it. Then all you need to do is get the first instance of that class and call the function.
-
Create a static function in C++. No need any instance, though you need to know C++ to do this.