Frictional Games Forum (read-only)
How do sound entities work? - 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: How do sound entities work? (/thread-14341.html)



How do sound entities work? - Southlaguna - 03-29-2012

I've noticed in the hpl Editor that there is an option to place sounds, I have tried using these sounds but no matter what sound i load to it, it doesnt play, I've tried "Preloadsound" script but still nothing happens. Can anyone tell me how to use those things?


RE: How do sound entities work? - Your Computer - 03-29-2012

Sounds tend to have a predefined range of distance (though this can be overridden in the level editor). This is used to determine how close the player has to be before they can hear the sound being played at the entity. Sound entities will play their sound the moment the game loads the map. So, if the sound is not a looping sound, by the time the player is within range of the sound, the sound may no longer be playing. To see if the sound is being played, you can use the debug menu to view currently playing sounds.