Frictional Games Forum (read-only)

Full Version: starting sound
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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);
}