Game Development Community

Several Config Datablock questions

by Julien Jassaud · in Torque Game Builder · 05/07/2009 (1:53 am) · 0 replies

Hi,

As I had assets to my game, my datblocks.cs file begins to get inconveniently long. I have a few ideas to solve this problem but encountered some problems :

1 - exec some other files containing Config Datablocks from datablock.cs or include Config Datablocks at the beginning of the class files that use them. It didn't work

2 - not a problem, a question : is it possible for an object to be assigned several Config Datablocks at the same time by calling setConfigDatablock several times with different blocks. For example, for bullet objects, defining a general Config Datablock with collision, blending, etc characteristics and several other ones for each type of bullets that will define more specific fields like ImageMap, Size, Speed, Damage, etc, and apply both datablock to a t2dSceneObject ?

Thanks,
Julien