Game Development Community

GhostID position

by Derk Adams · in Torque Game Engine · 07/25/2005 (10:20 am) · 4 replies

Greetings,

I have used %client.getGhostID(%target) to send the ghost id for a targeted object to the client and all works well. Now I would like to get the position of the object on the client side. For a server side object I would use %target.getPosition() but what do I use for the client side?

Thanks.

#1
07/25/2005 (11:12 am)
Have you tried: %client.resolveGhost(%ghostID).getPosition();
#2
07/25/2005 (12:43 pm)
Gary,

That is an excellent command, but it only works on the server. I need to know how to do it on the client.

Thanks.
#3
07/25/2005 (1:14 pm)
%clObj = ServerConnection.resolveGhostId(%srvObj);
#4
07/25/2005 (1:46 pm)
Robert,

It worked like a charm.

Thank you.