Frictional Games Forum (read-only)

Full Version: How do sound entities work?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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.