Game Development Community

Loading DSQ

by Greg Gardinier · in Torque Game Engine · 05/13/2007 (2:22 am) · 2 replies

How do I load a DSQ in TGE. I have a non character DTS model and I have to use sequences embedded into DSQ files for several reasons.

Is there a console command I can use to load a DSQ file into torque and then play the sequence?

Thanks

#1
05/13/2007 (2:49 am)
You need to write a script that loads the animations:
datablock TSShapeConstructor(yourDts)
{
   baseShape = "./your.dts";
   sequence0 = "./your_anim1.dsq nameOfAnimation";
   sequence1 = "./your_anim2.dsq nameOfAnimation";
   sequence2 = "./your_anim3.dsq nameOfAnimation";
};
The "TSShapeConstructor" name must match the name of the base dts.

To play an animation from script:
%obj.playCelAnimation(%anim);
Where %obj = the object with the animation and %anim = the name of the animation.
#2
05/13/2007 (1:19 pm)
Thanks a bunch. For some reason I though that process was exclusive to the player models... Very helpful :)