Game Development Community

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

About the author

Recent Threads


#1
03/22/2009 (5:06 pm)
Hi there, as far as I know you can only have 1 control object per client. A suggestion would be to make your control object a game avatar or even the camera itself. Other objects, such as cars, would be AI vehicles that the player can control in-directly.
#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
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