Ai movement doesn't work in multiplayer

Hi everyone. I have a weird issue:

“AI move to” doesn’t work in multiplayer, only in standalone mode.

I have been setting up a game for the last 6 months and finally after the main logic is set up I wanted to look into multiplayer, and quickly found out that I should have done it from the start. However, I am learning about replications, rpcs etc. My game logic was working fine on the listen server (Ai moving, finding enemy, shooting, upgrading etc), and then I wanted to set up a dedicated server. Ended up downloading UE source code and messed up my project file.
Then I copied all the content into the new project, set up a new map, and now even “Ai move to” doesn’t work. However, it works as intended in a standalone mode, though my AI is shooting at something which is not there (problem for later).

Now I simply want the AI to walk to a location on a server, and I can’t even get that to work, even after I removed all the logic for finding a location to move to.

The logic now is as following:

Player controller triggers a spawn event on server.
AI spawns, but doesn’t move. In the AI blueprint I reduced it to simple Event Begin Play → Ai move to. Location is specified with coordinates.
AI spawns but nothing happens, not on listen server and not on dedicated server, however, print string says that the function is being triggered.
I am so confused, thought that I had everything going smoothly, even complex game logic, and now I can’t even get the AI to move :frowning:

AI has AI controller, is replicating and replicating movement. NavMesh is green all over.

When I try “Simple move to” an error message says “movement is not allowed” no matter if I set the player controller, instigator controller or AI controller as the controller.

I tried to trigger both functions (AI Move To and Simple Move to) through player controller and tried all replicating options on the event, same issue.

The only error I get on the dedicated server (sometimes) says something like “enable input can only be determined by the player controller for itself”.

For me it seems something happened when I transferred my content from the previous project to the new one when I messed up my project file.
However, it seems very odd that movement works when I try it in standalone mode, but not in multiplayer mode, listen server included.

Maybe someone else has faced similar issues? I usually resolve all issues myself by searching forums and try and fail method, watching tutorials and reading official UE documents, but now I feel I am just out of options after trying to resolve this for a week.

  • TopDownMap
  • UE 5.1

Any help is highly appreciated.

Thank you!

I forgot to mention that the AI is Actor class and has a character movement component.
The Spawn event triggered by the Player controller blueprint is “Spawn actor from class”.

Another thing that came to my mind. My Character pawn is just a camera with AI controller as the controller, while the Spawn event is triggered by the Player Controller class. So the spawned actor has the player controller as the owner but player pawn (with Ai controller) as the instigator. Can this cause a problem with replicating events?

I just went ahead and doing testing in the editor with client-client mode. At least some things are working this way.