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
Avatar Position
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.
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
The SmartFoxServer Team
Return to “OpenSpace v2 discussions and help”
Who is online
Users browsing this forum: No registered users and 45 guests