So my problem is that I dont know how I replicate these things right.
I thought I have to raycast the lines on the client and then somehow give the result to the server.
Then the server would move the player. But I dont know how i can do this.
Can someone give me another angle of thinking or maybe some resources that i have overlooked.
Thanks for your response. I forgot to mention, that I’m using stamina points for the wall dodge. So basicly at the begging you have 100 SP than one wall dodge decrease the SP by 20.
I thought because I have to reduce the SP variable on the server i just move him ^^.
Oh okay. Well if you are trying to prevent cheating you would probably want the server to handle the SP. I don’t really have any thoughts on this because I haven’t the foggiest idea of how cheaters go about their work.
But I don’t see why you still cant push the SP reduction to the server and do the moving on the client side. If you are concerned with cheating you can still do some local checks, eg if they magically have too much stamina after doing x task – force check with server.
Depends how much load you want to put on bandwidth and the server cpu.