Game Development Community

Gun Animation

by Howard Dortch · in Torque Game Engine · 11/16/2005 (10:15 am) · 2 replies

I created a gun with a recoil animation and it shows fine in showtool. When I mount it in game the animation does not play when I fire the gun. Any hints as to what could cause this?

#1
11/16/2005 (10:25 am)
Typically, problems like this usually stem from the animation being named something that isn't actually being called in script. Basically, the animation was successfully exported with the dts, but there is no script to actually play it.

If you are using stock Torque weapon code, Id suggest going through your animation marker names and making sure you didn't make any typos. If you aren't using stock code, make sure your weapon scripts are actually calling the animation you created in your weapons model file.

EDIT: clarification.
#2
11/16/2005 (10:51 am)
The names you refer to are in ShapeBaseImageData as stateName[3] = "Fire"; ?
The animation is named "Fire" is this the spot I want to look into ?