Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Amnesia sound problem?
heroswine24 Offline
Junior Member

Posts: 2
Threads: 1
Joined: Apr 2013
Reputation: 0
#1
Question  Amnesia sound problem?

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);
}
04-01-2013, 06:41 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#2
RE: Amnesia sound problem?

PlaySoundAtEntity("", "amb_idle_scratch.snt", "Player", 0, false);
This is because PlaySoundAtEntity uses .snt's, not .ogg's.

"Veni, vidi, vici."
"I came, I saw, I conquered."
04-01-2013, 07:01 AM
Find
heroswine24 Offline
Junior Member

Posts: 2
Threads: 1
Joined: Apr 2013
Reputation: 0
#3
RE: Amnesia sound problem?

(04-01-2013, 07:01 AM)JustAnotherPlayer Wrote:
PlaySoundAtEntity("", "amb_idle_scratch.snt", "Player", 0, false);
This is because PlaySoundAtEntity uses .snt's, not .ogg's.

Thanks man, it worked Smile
04-01-2013, 11:25 PM
Find
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#4
RE: Amnesia sound problem?

If you want to play sounds at the player, you could yse the PlaySoundGui. I find it much easier to use
04-02-2013, 08:57 AM
Find




Users browsing this thread: 1 Guest(s)