Game Development Community

Changing player control to another player

by AzraelK · in General Discussion · 01/23/2002 (8:47 am) · 1 replies

This may sound weird since AI is not working yet.. but we really need to know if this is possible (or how hard will it be to do)

What we want is to load player1 a player model and player2 a bot, then.. at some point we want to take control of player2, and then back to player1. (like in rainbow six remember?)
how hard will it be to do this?

#1
01/23/2002 (9:35 am)
Well if this works anything like tribes 2 (I still don't have Torque please bare with me) it's already in the game.

client.setControlObject(object);

I think you can call it on a player object too. You can set control to turrets, vehicles, and players.

You can check if someone is controlling the object via:

object.getControllingClient();

I think those are correct method names. NOTE this is SCRIPT side I don't know how it'll be in the TGE.