Playing multiple sounds In a function? - 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: Playing multiple sounds In a function? (/thread-9305.html) |
Playing multiple sounds In a function? - JoeBradleyUK - 07-22-2011 Multiple sounds won't play in my level in this function, the banging sound won't play some odd reason, any ideas? Here is the part of the script that doesn't work: Code: void Storage_Scream_2(string &in asParent, string &in asChild, int alState) RE: Playing multiple sounds In a function? - Dizturbed - 07-22-2011 PlayGuiSound RE: Playing multiple sounds In a function? - JoeBradleyUK - 07-22-2011 (07-22-2011, 04:07 PM)Dizturbed Wrote: PlayGuiSound Sorry but, what's that? RE: Playing multiple sounds In a function? - Khyrpa - 07-22-2011 PlaySoundAtEntity can only play .snt files PlayGuiSound plays .ogg ones RE: Playing multiple sounds In a function? - Dizturbed - 07-22-2011 here's an example of using two sounds in one function! the .ogg files are almost like the .snt files PHP Code: void monsterspawn1(string &in entity) RE: Playing multiple sounds In a function? - MrCookieh - 07-22-2011 you don't have to add the .snt/.ogg extensions after the sound name. The system will do this automatically, that's why you can put only .snt sounds in PlaySoundAtEntity(...); but there should be the banging sound (.snt) in the same folder as the one you use (.ogg) 15_bang.snt RE: Playing multiple sounds In a function? - JoeBradleyUK - 07-22-2011 Ok Thanks! It's worked |