Game Development Community

Getting Y position

by Dracola · in Torque Game Engine · 10/07/2005 (4:14 pm) · 4 replies

How do I get the Y position of a player and only the Y position no X or Y. I don't know how and I think that would be important in a lot of code. I assume finding the Y position only would be the same as only getting the x.

#1
10/07/2005 (4:16 pm)
%y = getword(%object.getposition(), 1);
#2
10/07/2005 (4:17 pm)
Thanks I'll try that.
#3
10/07/2005 (4:20 pm)
Getword is handy as heck sometimes,

the position will come out as a matrix

X Y Z

words start as 0 as most things int he computer language world.
#4
10/07/2005 (4:28 pm)
Worked like a charm. thanks again.