Frictional Games Forum (read-only)
Sound Issues - 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 - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Sound Issues (/thread-10626.html)



Sound Issues - Gamemakingdude - 10-06-2011

PHP Code:
void HammerScare(string &in entitystring &in type)
{
  
AddPropImpulse("sledge_1"30520"world");
  
PlaySoundAtEntity("FistPump""FistPump.snt","Player"0false);


This plays the sound.

Code:
<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="FistPump.ogg" />
</Main>
</SOUNDS>
<PROPERTIES Volume="1" MinDistance="12" MaxDistance="50" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="True" Blockable="False" BlockVolumeMul="0.7" Priority="0" />
</SOUNDENTITY>

The snt file. Its called FistPump.snt

Why isnt the sound working in the game?


RE: Sound Issues - Tanshaydar - 10-06-2011

Remove the ogg part from your snt file.


RE: Sound Issues - Gamemakingdude - 10-06-2011

Nope doesnt do it. Still silent.


RE: Sound Issues - Tanshaydar - 10-06-2011

MinDistance="12" MaxDistance="50"

Do you know what these do? MinDistance 12 is too much.



RE: Sound Issues - Gamemakingdude - 10-06-2011

Changing the min distance to 1 seemed to fix it! Thanks Tanshaydar!