Hello everyone,
I hope this is the right subforum, I am new here.
I am currently programming a RTS with the focus on multiplayer, using both Unity and my own C++ Engine (just core, no graphics, I still don't trust Unity to be deterministic).
After solving basic problems and now being able to do standard stuff which has no interaction between the players (constructing, walking), I am up to implement the "fights".
My Units walk grid-based to get rid of nasty floats (the animation still has them though, so you don't see the "hopps"), so this seems to be deterministic. But now I need to ensure that fights have always the same way to happen. Currently my Unit have a Combat-Script, but I don't know in which order Unity checks them, so I wanted to write myself a combatmanager, doing all the fights all over the map.
Now I am not sure how to handle problems like the "first hit". When two enemy units encounter, how do can I be sure that always one unit gets off the first hit? Or am I missing something very basically here, because I didn't found anything regarding that on the web.