So do I just go through all my input actions for all my attacks and movement and add this to them? Or is there a better way.
It is working, all clients and server are synced and working but something feels off about it.
So do I just go through all my input actions for all my attacks and movement and add this to them? Or is there a better way.
It is working, all clients and server are synced and working but something feels off about it.
It really depends on what you’re doing. Some stuff can simply be done with one RPC’s.
Other things require Srv RPC → Multicast/RPC Owner Only/SkipOwner etc. Really depends on the gameplay feature.
if something feels off, then its probably about the event tick, if you are using it for many things, you will see that the server could be moving faster than the clients, if you want to fix this then you will have to multiply the input from the clients with the Delta World Seconds
Thank you for the response, I’ve since updated my “formula”
I’ve basically added this to every one of my input actions and it seems to be working fine for most things. my main concern is if I’m being redundant and am going to run into big optimization issues or if I am on the right track. I guess I need to learn the network profiler to really figure it out.
Thank you for your response, I have some things multiplied by delta world seconds like say stamina and energy regeneration, are you referring to multiplying things like movement to sync them up? and if so do you mind giving an example.
I apologize for my vague post, I’m just trying to figure out if I’m on the right track I really appreciate the feedback!
Sorry when say “something feels off” I’m referring to the process of adding these nodes to all my stuff. Is there some way of streamlining this process? Because its all custom events that cant really be copy pasted is there a way to like make a function that says run on server and multicast then I can just feed a bunch of stuff through that function or something. Or is this truly the right way to do it and I just keep going
yes, when i first started networking, i felt the same, you need to understand what do you need to replicate and what not, first of all, doing this Server and then Multicast, would be a good use to replicate One Time events, like Playing sounds, or temporary effects, also there are things that get replicated automatically, like the movement of player characters, so you might have to dig deeper, into the knowledge of replication.