Hello,
I have NPCs in my game that can walk around the map and fight back when attacked by players. For handling this, I built a system using pathfinding, and to optimize server performance I run it on the client. Everything works fine most of the time, but sometimes the network ownership changes automatically, which causes the NPC to stop moving since it was handled by the attacker.
After a lot of research, I still haven’t found a solution. The only workaround I’ve come up with is creating a server-sided loop that checks whether the attacker is not the network owner. But that feels pointless, since I specifically made the system client-sided for performance reasons.
What could really help is a simple connection or signal, for example something like “NetworkOwnerChanged”, that we could use.