How do I access the player object in the in game console?
by John Quarles · in Torque Game Engine · 04/13/2005 (12:41 pm) · 3 replies
How do I access the player object from the in game console(~)?
#2
Type tree(); into the console.
Then navigate to ServerGroup->MissionCleanup and you'll see your player object in there. Use the id number as the object (ie 2734.dump(); )
04/13/2005 (1:36 pm)
Robert's method works well. You can also find the id of it by using the tree tool.Type tree(); into the console.
Then navigate to ServerGroup->MissionCleanup and you'll see your player object in there. Use the id number as the object (ie 2734.dump(); )
#3
04/13/2005 (2:50 pm)
Note that there's a client and a server instance of the player in a loopback server.
Torque Owner Robert Pierce
You can always use "$player = %player;" at the end of the function that spawns the player.
I hope that helps, or was the answer to what you were talking about.
Robert