Frictional Games Forum (read-only)

Full Version: Amnesia sound problem?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello all of Frictional Games, and Amnesia Scripters, I have a problem with scripting sounds into my amnesia custom story.I have tried countless times to enter them, they are original sounds from amnesia NOT CUSTOM. They just don't make any sound whether I collide, interact, or anything else.

I really need help to continue my story, plz reply Smile
Oh also here is my script,


void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_2", "strangesounds", true, 0);
}

void strangesounds(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "amb_idle_scratch02.ogg", "Player", 0, false);
}
Code:
PlaySoundAtEntity("", "amb_idle_scratch.snt", "Player", 0, false);
This is because PlaySoundAtEntity uses .snt's, not .ogg's.
(04-01-2013, 07:01 AM)JustAnotherPlayer Wrote: [ -> ]
Code:
PlaySoundAtEntity("", "amb_idle_scratch.snt", "Player", 0, false);
This is because PlaySoundAtEntity uses .snt's, not .ogg's.

Thanks man, it worked Smile
If you want to play sounds at the player, you could yse the PlaySoundGui. I find it much easier to use