Frictional Games Forum

Full Version: Stop sound doesn't work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to stop playing a sound:
Code:
StopSound("xxxxx.snt", 0);
But the sound doesn't stop...
Maybe a little more information would help... Confused
Code:
{SetEntityPlayerInteractCallback("lever_nice01_2", "x", true);}
void x(string &in asEntity)
{
StopSound("xxxxx", 0);
SetLevelDoorLocked("level_hub_1", false);  
}
You don't put the file name.snt there, but the actual name you've put in PlaySoundAtEntity command (string& asSoundName).
Still doesn't work :S
In PlaySoundAtEntity is exactly the same name.
Show us more code. Don't have us assume things that is in contradiction of the issue.