Multiple controlObjects per client
by fusioncow · in General Discussion · 03/22/2009 (1:08 pm) · 3 replies
Hi All,
I'm working on a TGEA game for which I need RC car-style interaction. I'd like the player to have full movement in the world, but also be able to move a vehicle that they are not directly mounted to.
I haven't found much documentation on the setControlObject methods, except that you can only have one client per ControlObject. The source doesn't seem to reveal too much to me either.
Am I misunderstanding the intent of setControlObject, and should be looking into an AIVehicle, or is this possible?
Thanks in advance,
Fusioncow
I'm working on a TGEA game for which I need RC car-style interaction. I'd like the player to have full movement in the world, but also be able to move a vehicle that they are not directly mounted to.
I haven't found much documentation on the setControlObject methods, except that you can only have one client per ControlObject. The source doesn't seem to reveal too much to me either.
Am I misunderstanding the intent of setControlObject, and should be looking into an AIVehicle, or is this possible?
Thanks in advance,
Fusioncow
#2
03/22/2009 (10:02 pm)
You can technically take control of the camera away from the player when he/she is "controlling" a player body or vehicle. But you will run into problems of movement controls in orientation to the camera (which is very disorienting!) and the possibility of moving outside the view of the camera alltogether. I never tried to overcome those problems, though I'm sure it could be done.
#3
I was hoping to avoid using AI, since it would seem like a lot of overhead for what I'm trying to do (or is it because I'm not terribly good at getting AI in the game?).
I'll give that a shot. Thanks to both of you.
fusioncow
03/24/2009 (9:05 pm)
Thanks Steve and Michael,I was hoping to avoid using AI, since it would seem like a lot of overhead for what I'm trying to do (or is it because I'm not terribly good at getting AI in the game?).
I'll give that a shot. Thanks to both of you.
fusioncow
Torque Owner Steve D