Problem with "Click to Move" in Client side!

Hello, I am trying to make a “Click to Move” system for Multiplayer but it seem Client… for some reason, is not moving

I am sure I am doing something wrong but i am not sure of it

Here is blueprint :



“Get Hit Result Under Cursor by Channel” sometimes shown X : 0, Y : 0, Z : 0 on Client for some reason
then got fixed after i added and Compared them with “Line by Trace” but even if it shows true Location i clicked :

  • Standalone (For single-player i think?) : Works
  • Listen Server : [ Server : Works ], [ Client : Doesn’t Work ]
  • Only Client : Doesn’t work

I am trying to make Multiplayer but somehow cannot move Client-side

Here is the video showing both Server-Side and Client-Side :

Video seems laggy for some reason after uploading it… for somereason…

Uploading a 2nd video hoping, it won’t be laggy after upload?

The server is an authoritative model. The move to command should be made via an RPC (remote procedure call) from the client to the server.

The simple move to should be called on the server passing in the vector location to the RPC. (make a custom event, change it to server and add a vector input to pass along the information).

Then instead of calling the simple move to directly, do it via the server event which in turns calls simple move to on the server side.

1 Like


Still doesn’t seem to let client move
only server moves

am i doing something wrong?

The RPC has to be called from either the player controller or a possessed pawn. The class that is calling the RPC has to be it’s owner for it to work.

1 Like

I call it from PlayerController, Server and Standalone can move but if “Client” it doesn’t want to move
there is 1 time it worked but its not the way i want

i had to make it “Triggered” and hold the Left Click to move it, which is not what i want :C


The client… for some reason doesn’t want to move no matter what with “Simple Move”

if i check with “Has Authority” it returns True

Try turning off run under one process in the project settings. It can cause multiplayer to behave strange on a single machine

1 Like


ughh I am gonna cry

it still doesn’t move client :C

i will search more ways tomorrow then ( gotta go job :C )

Example click to move multiplayer

1 Like

Thank you, i will take this as an example and implement it this way!
i didn’t understand pre-made TopDown template last time
now that i am checking it carefully
i can see what i have done wrong and how to do it better way

Finally!

I was so confused and tried many things
I tried to 1:1 copy “TopAimMP.zip

but also failed many things ( i didn’t want to change my whole file set-up style so i tried to learn stuff myself)

i have made many errors and 1 of the worst errors I have made is

image
Not Making this “Placed in World or Spawned”, which made AIController not take over the Pawn

and

Not Changing the Default Pawn Class to a Camera one that will posses Character later on.


e

once I achieve my Goals
I will make Tutorial about how to make all this easily ( i believe )
Why? Because most of “Point to Move”/“Click to Move” like things mostly show Single-Player related things…

Thanks @3dRaven for his help

1 Like

Contrats on getting it working on the client side :slight_smile:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.