Controlling a player while watching him in the external camera
by Edwin Hofer · in Torque Game Engine · 06/26/2006 (5:01 am) · 3 replies
Greetings from Vienna,
This my first post here!
I have a simple (?) question: Is it possible to control the player over the WASD keys
while I watch him thru the external camera (Alt-C)? I know, that there is a "control object",
that follows the WASD input, but unfortunally when I switch to the camera view I only can
controll the camera... Is there a console command to adress the WASD keys to the player?
Thanks for your help! And forgive me, if this has been asked before...
Nice day @ all,
Edwin
This my first post here!
I have a simple (?) question: Is it possible to control the player over the WASD keys
while I watch him thru the external camera (Alt-C)? I know, that there is a "control object",
that follows the WASD input, but unfortunally when I switch to the camera view I only can
controll the camera... Is there a console command to adress the WASD keys to the player?
Thanks for your help! And forgive me, if this has been asked before...
Nice day @ all,
Edwin
#2
I would like to be able to view the players motions/animations like in the resource you pointed out.
But I would prefer a simpler approach, without changing the source code if possible.
Something like a simple(?) console command, like:
client.setControlObject(player); to switch the WASD input to the player while I'm in the aux-camera
client.setControlObject(camera); to switch back, so that I can move the camera again...
I've tried some combinations of the setControlObject() function but with no success...
Maybe I missunderstand somthing basic?!
Do you know what I mean?
Greetings,
Edwin
06/27/2006 (5:25 am)
Not really. The Advanced Camera would be the sophisticated hitech solution...I would like to be able to view the players motions/animations like in the resource you pointed out.
But I would prefer a simpler approach, without changing the source code if possible.
Something like a simple(?) console command, like:
client.setControlObject(player); to switch the WASD input to the player while I'm in the aux-camera
client.setControlObject(camera); to switch back, so that I can move the camera again...
I've tried some combinations of the setControlObject() function but with no success...
Maybe I missunderstand somthing basic?!
Do you know what I mean?
Greetings,
Edwin
#3
I suggest that you implement the advance camera resources.
As simple as the name of the function implies, setControlObject, the engine update the moves of whichever object that are set to control.
*edited
If you're just using it to look at how your character behaves, then there's another methods available for you.
I'm not sure about other version other than 1.4 but instead of using %client.setControlObject(), use
%client.chaseCam(%time) where %time is the value you want to delay the camera. For a start try 5000.
So within this delay, you can pretty much do whatever you want to the object you are controlling without the camera tailing behind.
Note:
1) Make sure you already set control to the object you want to control and not the camera.
2) You need to be in third person mode.
Rgds
Mickey
06/27/2006 (6:13 am)
Hi EdwinI suggest that you implement the advance camera resources.
As simple as the name of the function implies, setControlObject, the engine update the moves of whichever object that are set to control.
*edited
If you're just using it to look at how your character behaves, then there's another methods available for you.
I'm not sure about other version other than 1.4 but instead of using %client.setControlObject(), use
%client.chaseCam(%time) where %time is the value you want to delay the camera. For a start try 5000.
So within this delay, you can pretty much do whatever you want to the object you are controlling without the camera tailing behind.
Note:
1) Make sure you already set control to the object you want to control and not the camera.
2) You need to be in third person mode.
Rgds
Mickey
Torque Owner Martin de Richelieu