Greetings if you know me I did post a few days ago on the topic of sending massive amount of NPC data over a unreliable event.
The solution: Bit packing + buffers ![]()
Ultimately I shrinked it down to 5 bytes per NPC which is massive considering 2 NPCâs before took over 517 bytes!!!
The NPCs:
Working well so far :D!
Ignore the NPCâs looking up into the sky I am currently debugging the issue with the CFrame calculation but nevertheless the NPCâs are working well and accurate towards the serverâs simulation.
Now for my question.
How should I handle animations?
First, basic movement like walking is already inbuilt to the NPC when the rig is cloned to the client! However things like weapon animation and such can be hard to sync with delay (server tick is 0.3 seconds) as the server handles the damage counter while the visuals are instantly perceived by the client which can look awkward if the animation is outta place.
Secondly, how should I handle sending what animation to play to tell the client to replicate this onto their cloned rig without sacrificing network bandwidth?
Any suggestions/insight is appreciated.
