Game Development Community

Drop camera but control player

by c-level · in Torque Game Engine · 02/20/2005 (3:13 pm) · 1 replies

I'd like to mount the camera on an aiplayer while the player can still be controlled normally with keys and mouse. Actually, to make things simple, the camera could just be positioned and oriented with the aiplayer since I don't plan on moving the aiplayer at all. I can just use setTransform()
Can this be done all in scripting?

For example in the function 'serverCmdDropCameraAtPlayer', if I specify the location for setTransform, I've got my camera placement, but if I comment out '%client.setControlObject(%client.camera);', then nothing happens.

I don't see the function 'setControlObject' in any .cs files. It sounds like I need to tinker with the source...

In brief, if I want to control the player, but simply drop the camera somewhere, what should I do?

If mounting the camera on an aiplayer is just as easy, then that's great!

ty

P.S. - Maybe I should take a look at how the RTS pack works.

#1
02/21/2005 (3:12 pm)
Did more looking and found great stuff:

http://www.garagegames.com/mg/forums/result.thread.php?qt=22364