How to add simple sound to a model?
by GarageGamer · in Torque Game Engine · 03/31/2004 (11:31 am) · 1 replies
I need to add a simple looping sound to a animal model in torque, i've tried adding them to my animal script files but i cannot get them to play.
datablock AudioProfile(WoodPecker)
{
filename = "~/data/sound/fx/birds/woodpecker.wav";
description = AudioSound3d;
preload = true;
};
// And using this in audioprofiles
datablock AudioDescription(AudioSound3d)
{
volume = 1.0;
isLooping= true;
is3D = true;
minDistance= 10.0;
referenceDistance = 10.0;
MaxDistance= 250.0;
type = $EffectAudioType;
};
My audioprofile works with ambient sounds using audio emitters, but i can't them to play on a model. All i really need is to have the sound attached to the model where ever it goes. Thanks if anyone can help.
datablock AudioProfile(WoodPecker)
{
filename = "~/data/sound/fx/birds/woodpecker.wav";
description = AudioSound3d;
preload = true;
};
// And using this in audioprofiles
datablock AudioDescription(AudioSound3d)
{
volume = 1.0;
isLooping= true;
is3D = true;
minDistance= 10.0;
referenceDistance = 10.0;
MaxDistance= 250.0;
type = $EffectAudioType;
};
My audioprofile works with ambient sounds using audio emitters, but i can't them to play on a model. All i really need is to have the sound attached to the model where ever it goes. Thanks if anyone can help.
About the author
Torque Owner Alex Swanson
More info on triggers here:
www.garagegames.com/docs/torque.sdk/tools/max2dts/section3.html#trigger