![]() |
sounds - 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: sounds (/thread-25672.html) |
sounds - G510s - 07-12-2014 i need help with the sound effects...idk how to get the to play when i want...i use the sound category in the hpl editor but when i spawn into a level it plays right away instead of when i want it to. RE: sounds - Neelke - 07-12-2014 This might come in handy. Code: void PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound); RE: sounds - Artsy - 07-12-2014 The sounds from the Level Editor are not made to play whenever you want them to, they're loops and they're mostly designed to work for level ambiance and such. What Neelke said, use that function. For other sounds/music related functions, see this: https://wiki.frictionalgames.com/doku.php?id=hpl2/amnesia/script_functions#sounds_music |