#Player movements by server authority

1 messages · Page 1 of 1 (latest)

spark laurel
#

Hello,
I currently move my player on the client side, and use the NetworkTransform Client to Server
I want to change to move the player on the server and the client see the movement
But how can i do that ? If i use a [Command] that will be catastrophic right ?
(I use mirror)
Thanks in advance for your recommandations

plucky cloud
#

Yes, for server authority, you'll have to use an RPC to tell the server to move the player. This will introduce lag in your inputs though. That is the price you have pay. You can create a client prediction system to get around that lag but that is a very complex system.

spark laurel
#

@plucky cloud thanks for this information
Should I remove the NetworkTransform and do it myself with script instead of just turn it Server -> client ?