Getting Avatar Position in server side

Post here your questions about the OpenSpace 2.x or notify bugs and suggestions.

Moderators: Lapo, Bax

Post Reply
Malini
Posts: 4
Joined: 15 Oct 2011, 03:53

Getting Avatar Position in server side

Post 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?
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post 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.
Paolo Bax
The SmartFoxServer Team
Post Reply