I'm making a plugin and I want to display a live preview of the game on my website.
On top of a map image, i want to display the exact position of each player (updated every 5 seconds).
I can use get_user_origin() function to get the player position and it returns something like this:
-1060 1118 -4
I presume first 2 numbers are the X and Y coordinates on the map and the last one is the height where the player is? Can someone confirm this?
I also need to get the map size (width and length) so I can position the players over the map image preview properly.
I couldn't find a function for that. Can anyone help?