noob here with Top Down Multiplayer movement issues

hey im trying to create a basic top down multiplayer game but im having issues with how to get it all to work correctly since im new.

im not sure how to get around this altho it may be simple and im over complicating everything from my understanding a player can only possess 1 pawn at a time so in my case this would be my top down camera since i want free cam movement with edge scrolling. so then if i possess the charactor i want the players to use it will also add a cam if there is none already which i cant use in my case.

so i have this on the game mode for the level

pic

then create the players characters on the controllers and set it to a variable so the move command can use it.

pic

basic right click and move the character

pic


yes the AI auto posses on placed in world and spawn for the characters
yes the playercharactor vairable is set to replicate

all works fine in a solo game but clients dont seem to get any controll at all. also when testing as a listen server the listen server client gets controll as normal and the clients can see its movement altho the walk animations arnt replicating over

a error im getting with get ai controller

Blueprint Runtime Error: “Accessed None trying to read property CallFunc_GetAIController_ReturnValue”. Node: Stop Movement Graph: EventGraph Function: Execute Ubergraph Charactor Parent Blueprint: Charactor_Parent

i believe this is my issue the clients arnt getting access to the AI controller ? if so whats the fix?

UNITmoveCommand is an interface.
You can’t set on what side it’s called. You would need to call the interface in the other side already on the server.
You can add a switch has authority node on the start of the function to make sure it’s on the server.

1 Like

how do i force the Event UNITmoveCommand to be a server only function.
when i click it i change the replicates to run on server right? that option doesnt come up for me
image

Edit: so i made a custom event for the server to run the unit move command on the server only and its working fine