Hello, i have a question about how to get rid of rubber banding i made a simple walk and sprint system and that it gets subtracted by item weight of player stats and i keep getting rubber banded wen i equip an item so how do i fix this
Hey there @TediValo! I believe Auran is correct here in that your player stats aren’t replicated. You’ll need to replicate all variables that you pull from so there’s no desync between client and server. I’d personally recommend using a Replication Notify (RepNotify).
Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.
hey, i fixed some things its a lot better now thanks,almost working only 1 thing left and its how to update it at first because server gets updated first before client so i have to run then walk for it to be matching is there a way to fix this?
im not sure exactly what you mean but you blueprint is still a little off,
the simplest way to do this is to set nothing client side since it’ll all be overridden by the server anyway and this is to prevent cheating also.
so this is larger than what youve shown, things like your player stats and whatever sets it, should also only be server side otherwise it’ll be out of sync. the only things you really need to replicate back to the client are things that the player needs to know, for instance is you move speed displayed on a HUD
hey, i need to also have it on client because wen i only have it on server it starts rubber banding but wen i have it also on client it works my only issue now is having them sync together and not sure how to do that? and if i don’t need to have it on client please send me a video or something because i am not sure how i would do that
i added the variable to event tick its better a bit now there isnt any rubberbanding now im just tryng to figure out how to update the speed better sense i still have to make an input for it to update