Game Development Community

RTS Prototype - limit camera height/ select and move spawned AI

by JezPop · in Torque 3D Beginner · 08/23/2010 (11:05 pm) · 1 replies

So, as the title suggests, the RTS Prototype tutorial works well enough to show some capabilities that can be extended. What i would like to do is to be able to take control of the spawned ai so that i can give it the same command to move as i do the boombot ie make it the control object when i mousedown on it. There is no problem with the sceneobject detection or collision, i just need to know how to change the control from the boombot to my newly spawned ai so that if i mousedown on the spawned ai he will move and if i mousedown on the boombot he will move, any pointers will be greatfully received :)

Also there doesn't seem to be anyway i can limit the camera height in overhead mode when using the mouse wheel to zoom in and out..any suggestions??

Thanks in advance for any help...

#1
09/02/2010 (4:28 am)
%client.setControlObject(%obj);
Does this help?
I'm not sure if this is what you're looking for because I've never looked at the RTS tutorial.