Game Development Community

Animation Triggers and Sound

by Jon Jorajuria · in Torque Game Engine · 06/21/2006 (9:01 pm) · 1 replies

I have a model with an animation squence that has four sequence triggers. I would like to play a sound for each of those sequence triggers but I can not for the life of me figure out how to get the sound to play. Any suggestions?

**I may have double posted this...I appologize in advanced if I did.

#1
06/21/2006 (9:07 pm)
Look at the footpuff code in player.cc It drops a decal, puffs some dust and plays a sound in responce to 2 triggers that may be in the model (1/0 for left/right foot). What you want sounds like almost the exact same code routine, in very close to the same spot, with just a little less output.