Search Unity

Writing player positions to text file

Discussion in 'FPS.Sample Game' started by jonamellon, Apr 16, 2020.

  1. jonamellon

    jonamellon

    Joined:
    Mar 21, 2020
    Posts:
    2
    I'm wanting to use the positions of players in the FPS multiplayer game to drive behavior in another program. To do that, I need the client to export the positions and rotations of each connected player into a text file on each update cycle. Is there a simple way to extract and export this information?
     
  2. Stexe

    Stexe

    Joined:
    Feb 2, 2014
    Posts:
    217
    It is possible. As far as how to do it? No clue. I've seen people use it to do a mini-map and some other stuff.
     
  3. jonamellon

    jonamellon

    Joined:
    Mar 21, 2020
    Posts:
    2
    Have you seen any projects that have shared code samples for the minimap?
     
  4. Stexe

    Stexe

    Joined:
    Feb 2, 2014
    Posts:
    217
    I believe a while ago. Check the forums. Most people abandoned FPS Sample since Unity left it dead in the water. Wish they kept going for it and updated it with DOTS and so on... but so much for that.