Game Development Community

GetDatablock()?

by Temasek Polytechnic · in Torque Game Engine · 06/13/2006 (2:11 am) · 1 replies

I want to get the datablock of an object in Torque using its handle.

So its like %handle.getDatablock();

But when i print out the datablock, i get a 2 digit number(in my case, 52).

Why is this so?

#1
06/13/2006 (2:19 am)
TGE uses objects ids throughout... you should be able to get the datablock fields using
%handle.getDatablock().someVar
etc. and
%handle.getDatablock().getName() should give you the name... there should also be getClassName() etc.
or just try
%handle.getDatablock().dump() to see what it spits out...