Interface doesnt work for click and move to actor location


Hi,
I want to use procedural generation to create an overworld to explore and move from node to node with your character. So gameplay wise, you click on specific static actors(in this case, a basic cylinder in the world) to move your character to it using AI controller. To do that, Im using an interface to communicate between a controller and the character. But, I dont want any other types of movement(like moving freely using WASD or click and move to somewhere).

-Created RTS interface
-Created the function “Overworld move command”
-Created the BP’s I shared above
-Added the interface to the BP’s class settings

The only problem is, Map Location variable is not sent through the interface so no movement happens.

Please help if you know what im doing wrong or have a better idea to accomplish this using a different way.

Thanks in advance.

Also the ref variable type is Character object reference and named exactly the same as the player character which is BP_Overworld_Ship. That might be where the problem is but idk. Tried many different refs none worked so far.


The problem was the target ref of the Overworld Move Command(message).
Managed to solve it with get all actors of class node to get the proper ref.
But know im getting an error.

“Accessed None trying to read property CallFunc_GetAIController_ReturnValue”
Ai controller is not valid and I dont know what to do.