Game Development Community

X and Y dimensions for the FPS tutorial map?

by Frederic66 · in Torque Game Engine · 05/03/2004 (12:15 pm) · 7 replies

Hei,

All of the following questions refer to the FPS tutorial:

1* How do I get the X and Y dimensions for the FPS tutorial map? What are the units of measurement for the map dimensions? How do I change the X,Y dimensions?

2* How do I get the X, Y and Z coordinates of the control object? How do I get the X, Y and Z coordinates of the AI bot object?


Best Regards
Frederic66

#1
05/03/2004 (12:24 pm)
Don't cross-post!
#2
05/03/2004 (2:42 pm)
Oops!

I have deleted the cross post at the engine thread.
#3
05/03/2004 (2:45 pm)
2)
%objPosition = %obj.getTransform();
#4
05/03/2004 (3:27 pm)
Cool!

Can I call the getTransform() method from inside a C++ class?

Thanks and regards
Frederic66
#5
05/03/2004 (3:31 pm)
Yes you can use that call in C++ or the TorqueScript. To find out all the functions advailable in the scripting language, for an object use the dump function and check the console for a readout
%obj.dump();
#6
05/04/2004 (4:33 am)
Thanks Anthony.

Any idea how I can get the map dimensions? I am trying to understand the scaling.
#7
05/06/2004 (3:54 pm)
Look in the .mis files there should be relivant information like mission area size.