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
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
About the author
#2
I think it is what you are looking for.
Nicolas Buquet
www.buquet-net.com/cv/
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/
Torque Owner Lee Latham
Default Studio Name
But looking in the source is just as easy.