Frictional Games Forum (read-only)
starting sound - 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: starting sound (/thread-8331.html)



starting sound - xtron - 05-29-2011

I can't figure out how to make like 3 sounds play when I first enter the map. I guess it has something to do with the void OnEnter and the playsound function but I can't get it to work! Angry
Nevermind! I found out.


RE: starting sound - Kyle - 05-29-2011

Rage? Simple to answer.

Code:
void OnStart()
{
     PlaySoundAtEntity("", "SoundFile1.snt", "Location", 0, false);
     PlaySoundAtEntity("", "SoundFile2.snt", "Location", 0, false);
     PlaySoundAtEntity("", "SoundFile3.snt", "Location", 0, false);
}