Game Development Community

Can you dump all variables methods etc to console in TGB Script.

by Peterjohn Griffiths · in Torque Game Builder · 04/08/2011 (12:40 pm) · 1 replies

I am trying to find out what an item is thats passed to a function.
Is there any way to use the %item in the function to dump all variables like dynamic fields etc to the console.
So if the object was a platform with a dynamic fild of "Platform" I could put a call into a function that is passed the item as %item like so.
%item.dump;
And it would dump all info to the console related to the object %item.
Many thanks.

#1
04/08/2011 (1:01 pm)
Found the answer. Been looking for a hrs.
%item.dump();
Missed the braces. :D