Game Development Community

Pain and Death sounds not playing

by Robert Brower · in Torque Game Engine · 11/22/2002 (4:13 pm) · 4 replies

I got sounds working pretty good, but it seems like pain and death sounds are having some problems. Is anyone aware of any issues or fixes for pain and deathcry?

Thank you,

Robert

#1
11/22/2002 (5:05 pm)
Are you using...

serverPlay3D(DeathCrySound,%this.getTransform());

for example, in your Player::playDeathCry ? If not, you should.

Also make sure that DeathCrySound is a valid AudioProfile, like:

datablock AudioProfile(DeathCrySound)
{
   fileName = "~/data/sounds/death.wav";
   description = AudioClose3d;
   preload = true;
};

using whatever wave file you have, of course ...
#2
11/22/2002 (6:34 pm)
Okay that works. Except the function is uppercase S as in ServerPlay3D(... thank you! I feel shtoopid
#3
11/23/2002 (12:51 am)
It's not case sensitive ...
#4
11/23/2002 (6:27 am)
It's working now. =) thanks for the tip!