PlaySoundAtEntity doesn't work
Hi
I tried to make a script which is supposed to play a sound near the player when he pick up a key.
Here's the script:
void OnStart()
{
SetEntityPlayerInteractCallback("keyhouse", "bruit", true);
}
void bruit(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound)
{
PlaySoundAtEntity("", "hit_wood", "areabruit", 0, false);
PlaySoundAtEntity("", "attack_launch", "areabruit", 0, false);
}
The problem is that I can't hear any noise. I tried adding .snt at the end of the files, I tried to replace areabruit with a box or a door, and I still can't hear anything.
(This post was last modified: 06-19-2012, 09:38 PM by bartimeus.)
|