Page 1 of 1

Getting Avatar Position in server side

Posted: 14 Nov 2011, 12:43
by Malini
1) How to get the current position of Avatar in Server side??? I don't want to send it from client side. I want to get two users current position in server side. is that possible????
2) Is it possible to get the Tile in server side, by sending any inputs like avatar/map/any other arguments to any class?

Posted: 15 Nov 2011, 09:07
by Bax
1) On the server-side OpenSpace sets three User Variables showing the avatar's final coordinates of a path whenever the user clicks on a target tile. But it's just the final coordinates, not the current coordinates.
For example, if the avatar is in (0,0) and the users clicks tile (5,0), the User Variables are set to (5,0) immediately, and the server is not aware of each movement step -> (1,0) (2,0) etc.

2) No, the server-side extension isn't aware of the map's entities.