Basically, using Unity and something like Photon, would it be possible to log playerA’s vector3 positions, over a set time limit, then convert that data into a text file and send that to Photon, then get Photon to send the file to the client (playerB) and use Unity to make a for loop, to loop through the text file, to replay those Vector3’s?
Am I on the right track? or way off?
Thanks for any suggestions
Why would you do that?
You could just store them in a Dictionary and then run through that?
Sorry I don’t follow ?
You do not need to send the infomation in a textfile. You can just store it in a Dictionary locally over time, and then pass it around to other players when you want to. Then you dont have to convert anything.
Ah right, got it. Thanks for your help.
and I can use Photon to pass this around yes?
of course! use an rpc
Please see:
thanks for the help!
We do this for replay feature of one of our games, we store positions and rotations 20 times in a second and then send them over, then we lerp between each two in 1/20th of a second.