Game Development Community

Enumerating Datablocks

by James Mintram · in Torque Game Engine · 11/13/2008 (4:31 pm) · 2 replies

Hi there, I had a search of the forums and could not find what I wanted!

I would like to be able te enumerate all the datablocks with a certain baseclass, for example I may want to get a list of all the datablocks that exist and are derived from GameBase, or StaticObject or whatever I choose!

Is this possible within script or am I going to have to dig into the engine source code?

Cheers,

James

#1
12/01/2008 (12:24 am)
Trying doing a dump via the console. In other words, find an objectid and do "21112.dump;" in the console.

But looking in the source is just as easy.
#2
12/01/2008 (12:56 am)
Have a look at the "DataBlockGroup" variable.

I think it is what you are looking for.

Nicolas Buquet
www.buquet-net.com/cv/