Frictional Games Forum (read-only)
Sound [SOLVED] - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Sound [SOLVED] (/thread-7985.html)



Sound [SOLVED] - Karai16 - 05-14-2011

Hey guys! Another question... yeah I know I suck Sad

Anywho, I'm trying to make my custom story play a sound at the beginning of the map. It's a voice acting thing. So I tried to do it the same way someone else did it, (I have some custom maps and sometimes peek how other people do stuff)
But it won't work! Dodgy
Here's the thing:
in my custom story (Her Games) folder I have a sound folder. the path's like this: custom_stories\Her Games\sound\her games in that folder I have a Final_Destination.ogg and a Final_Destination.snt
This is the code:
Code:
void OnStart()
{
    PlaySoundAtEntity("", "Final_Destination.snt", "player", 0, true);
}
I've even tried to make it play with a AddEntityPlayerCollideCallBack and put a script area at the start position... but the sound just won't play. Can somebody help me? Huh I'm lost at what to do...
In case it helps, this is the .snt file:
Code:
<SOUNDENTITY>
  <SOUNDS>
      <Main>
          <Sound File="Final_Destination" />
      </Main>
  </SOUNDS>
  <PROPERTIES Volume="0.8" MinDistance="1" MaxDistance="12" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="False" BlockVolumeMul="0.8" Priority="0" />
</SOUNDENTITY>



RE: Sound - Roenlond - 05-14-2011

"player" might need to be "Player". Otherwise, try using PlayGuiSound to see if that helps.


RE: Sound [SOLVED] - laser50 - 05-14-2011

PS: Telling that you suck will never help you, believe in yourself! Big Grin


RE: Sound [SOLVED] - ferryadams10 - 05-15-2011

You should write player as "Player" ---> Pp <--- It makes the difference