So I’ve come to the conclusion that plain old actors wont work for my game. There are too many units/projectile/buildings. So I will have to go the ISM route and do vertex animation. I’ve been slamming my head against the wall trying to come up with a system that emulates Unreal’s actor replication but for ISM instances. Here’s how it works:
-Player pushes ‘create unit’ hotkey
-Request gets sent to server
-Server validates
-Server adds serialized data to a replicated array of newly spawned instances
-Both server AND clients have OnRep function to translate data and create instance
-Clients report back using reliable RPC to server they received that instance request
-Once server has all acknowledgments it removes it from replicated array
-Periodically server does a reliable et multicast to ensure state is the same.
I can’t figure out a better way to do it while also making the system reliable, but its lagging my project to high hell. How does unreal do actor replication? Any suggestions for better approaches?
Thanks