Game Development Community

Need Help with "Unknown command"

by Kimberly Unger · in Torque Game Engine · 11/24/2003 (3:26 pm) · 4 replies

Im getting "Unknown command getClosestBot" when I call the fuction
Ship::getClosestBot(%this);

The function call is
%bot = %client.player.getClosestBot( );

I've check the value found in %client.player and it is the same as the %obj value found in
function FlyingVehicleData::onAdd(%this,%obj)
{
.
.
.
}
What is the system trying to tell me, other than the obvious it doesn't reconized the command?

#1
11/24/2003 (7:47 pm)
Have you tried doing a %client.player.dump()?
#2
11/24/2003 (8:32 pm)
Good idea, don't know why I didn't think of it.
#3
04/21/2009 (9:40 am)
Bumping a very old thread.

Can anyone explain to me this line:

Quote:%client.player.dump()

How is it used and what purpose does it solve?

does it list all the %client.player functions?
is it a console function?

Thanks!
Tony
#4
04/21/2009 (10:35 am)
SimObject::dump() just dumps all the fields and methods of the object.

note there is a resource with (imo) improved versions of it if you search for "dumpMethods".