Game Development Community

Death animation crashing

by Bruno Grieco · in Torque Game Engine · 06/22/2004 (5:01 pm) · 2 replies

To put an end to my crows I created a death animation called "death1"

Whenever I call it thru %obj.setActionThread("death1"), torque crashes. I renamed it to "morte" and everything works fine.

I beleive that this is because death stuff is coded in the engine. Anyone else having problems with this ?

#1
06/22/2004 (5:11 pm)
Check right here. This has been around for a while.

There's a code fix mentioned in there that will fix the problem. In short, Torque has some special voodoo magic associated with an animation named "deathX" and therefore barfs if an animation does not possess ground frames.

In fact, I am surprised nobody has applied a fix for HEAD on this. It's relatively simple to override the behavior so it won't happen. (Either script-wise by using animations named other than "deathX" or by fixing the function that tries to get the ground transform.)
#2
01/29/2005 (11:28 pm)
There is a solution to this issue for Milkshape, 3DS Max and Maya exporters in this thread that does not require you to hack the engine at all.