Avatar Position

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

Moderators: Lapo, Bax

ChrisP
Posts: 7
Joined: 13 Jul 2011, 22:37

Avatar Position

Postby ChrisP » 18 Jul 2011, 14:58

Is there no way to get the current position of the avatar from server-side code? We are creating a real-time RTS game and currently evaluating OpenSpace to use as the Isometric engine. This will be multi-player so we need to be able to control NPC Avatars from the server-side of things. But it doesn't look like it's possible to get the "current" position of any avatar from the server. When looking at the _os_px and _os_py user variables it seems they only contain the destination of the last movement request. Is there something I am missing? Do you have any suggestions to get around this limitation? We might be able to send the Player Avatar movements to the server whenever they change tiles, but this can't happen with the NPC's as they're home is on the server and not in a client.

Any help would be appreciated.

Thanks,
Chris
User avatar
Bax
Site Admin
Posts: 4612
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 19 Jul 2011, 10:00

Sorry, but this is not possible.
The server is only aware of the avatar destination, but not of the current position during the movement.
No idea of what workaround you might use, because you don't have a client which "owns" the NPC, and there's no simulation on the server-side.
Paolo Bax
The SmartFoxServer Team

Return to “OpenSpace v2 discussions and help”

Who is online

Users browsing this forum: No registered users and 45 guests