Switching between players
by Christian · in Torque Game Engine · 08/17/2007 (12:02 pm) · 7 replies
Is there a method for switching between players, if you create 5 ai players to take control of them individually? Thanks.
About the author
#2
%Client.camera.setTransform(%Obj.getEyeTransform());
doesn't seem to do anything. Any suggestions?
08/17/2007 (1:14 pm)
Thanks, that part works, the camera part i'm having a bit of trouble with. Maybe it's because using an mmo camera, but%Client.camera.setTransform(%Obj.getEyeTransform());
doesn't seem to do anything. Any suggestions?
#3
08/17/2007 (1:27 pm)
Not sure what you mean by mmo camera, but are you sure the syntax of your variables are right (capitalization, etc.)?
#4
Trying echo("moving to object: " @ %Obj.getEyeTransform());
and other echos for the old object you where at.
and maybe show the full method.
08/17/2007 (5:05 pm)
Are you sure the %Obj is the object you want to move to?Trying echo("moving to object: " @ %Obj.getEyeTransform());
and other echos for the old object you where at.
and maybe show the full method.
#5
08/18/2007 (2:21 am)
By MMO camera do you mean Massively Multiplayer Online?
#6
Echoing works.
.setTransform() just doesn't do anything, no errors.
08/18/2007 (12:37 pm)
Yes to both.Echoing works.
.setTransform() just doesn't do anything, no errors.
#7
%this.setControlObject(%player);
this is the exact syntax from game.cs, if this doesnt work, and the variables are right, then probably your "MMO" camera has no consolemethod called setTransform().
also maybe your MMO camera has not been stored in %this.camera, but you'd have to look in the resource then (i dont know what that is ).
08/20/2007 (2:12 am)
%this.camera.setTransform(%player.getEyeTransform());%this.setControlObject(%player);
this is the exact syntax from game.cs, if this doesnt work, and the variables are right, then probably your "MMO" camera has no consolemethod called setTransform().
also maybe your MMO camera has not been stored in %this.camera, but you'd have to look in the resource then (i dont know what that is ).
Employee Scott Burns
GarageGames