Playing animations on the server vs on the client

In my own game, some abilities are reliant of animation events to trigger parts of the ability, however, apparently playing animations on the server side is bad practice and unperformant. Wouldn’t it be difficult and unmaintainable to make variations of the same ability/change the frame data (for want of a better word)?
I also feel that making animations play on the client instead of the server would mean I would have to create a controller for every npc i want to play animations on, because I have a network router that lets me send data to a client combatant, regardless of whether or not it is a player or npc
To summarize, is playing animations on the server really that bad opposed to playing them on the client?

3 Likes

If you want the animations to affect physics or the game logic in any way, you need to play them on the server too in most cases. If you don’t, you can just play them on a client created animator and network that.
Also do NOT use animation events for anything which modifies game state! They aren’t reliably called, especially not when throttled. You have to keep track of the timing yourself.

2 Likes