something useful
by Ian Omroth Hardingham · in Torque Game Engine · 04/04/2002 (8:09 am) · 0 replies
Hey guys. Just thought I'd tell you this because, like a lot of people, much of my time is spent trying to work out/bug test things to do with the %client object.
Write a little script like this:
GlobalActionMap.bindCmd(keyboard, "F8", "", "clientCmdAdd_snapcam_observer();");
function clientCmdGetClient()
{
commandToSever('StoreClient');
}
function serverCmdStoreClient(%client)
{
$me = %client;
}
I personally find this invaluable. I'm sure a lot of you do this already though.
You can then do useful things in the console like:
$me.player.dump();
echo($me.camera.getTransform());
etc etc.
Write a little script like this:
GlobalActionMap.bindCmd(keyboard, "F8", "", "clientCmdAdd_snapcam_observer();");
function clientCmdGetClient()
{
commandToSever('StoreClient');
}
function serverCmdStoreClient(%client)
{
$me = %client;
}
I personally find this invaluable. I'm sure a lot of you do this already though.
You can then do useful things in the console like:
$me.player.dump();
echo($me.camera.getTransform());
etc etc.