I am currently making a system which emulates Nier:Automata’s network feature, where you can die, and others connected online will find your body to collect in real time. I’m wondering if any of these methods are possible to store and/or send data:
-
Store data about any killed players name and death location to a datastore, and upon a new server starting, traverse through the datastore and spawn the bodies in mass.
-
Upon a single player dying, send data about the players name and death location to all servers and have them all spawn that specific body
I dont think I can do 2. And 1 could work with DataStores if I could traverse through it. But I cant, it seems. I’ve thought of assigning the first index in a datastore as an array to store the keys for all the players as a traversable list, then loop through that to grab their assigned data. Unsure if that work, and it seems like it comes with risks, what risks I’m too tired to think of right now.
Any ideas or third methods I dont know of that might make my life easier?
Thanks!