Game Development Community

can static object be animated?!?!?1

by Anthony Rosenbaum · in Torque Game Engine · 08/31/2001 (4:23 pm) · 1 replies

I tried to do the "%vehicle.playThread(o, "door");" to open my car's door . . . it is a static object, but when I do it it says "playThread function not found" do I have to do somthing to the code or are static objects un-animatable I was just wonder still tring to learn everything
Thanks Anthony

#1
09/02/2001 (11:44 am)
The TSStatic object is a light weight class which is not derived from ShapeBase, and so does not support the ShapeBase scripting interface. I just looked at that class and it doesn't appear to support any animation whatsoever, kind of lame. What I've done in the past for this kind of light weight "static" object is automatically play any animation sequence called "ambient". Wouldn't be hard to add...

Anyway, if you want to use the ShapeBase scripting functions on your object, you'll have to construct it using the StaticShape class, and not TSStatic.