Game Development Community

How to get a client's position?

by AIDan · in Torque Game Engine · 12/30/2001 (4:08 pm) · 4 replies

Hi

Where is the position of a client stored??

How can I access my client data??

greetings
Daniel

#1
12/30/2001 (6:15 pm)
I got the first thing.
%client.player.position
#2
12/30/2001 (6:51 pm)
or getTransform() will return a 6 digit value (err or 7 digit, can't remember)..

Anyway..each value is seperated by a space and the first three values are the x y and z coords of the object you are getting the position for. X and Y are for where on the map and Z for their height.
#3
12/31/2001 (1:51 pm)
I'm sure you already know this, but just in case... those will only work serverside (which makes sense of course).

I only mention it because I have seen many client side scripters develop something like that when they were serving the game, only to find it no longer works when they jump into any other server...
#4
12/31/2001 (6:35 pm)
I know what you mean.
Don't worry. :)

THX
Daniel