New to the forum? Say hello in this topic! Make sure to read the rules.
RULE NR 3 UPDATED: Don't hurt, harass or provoke other forum members or people.

SetAmbientSound input?

Share questions and tutorials related to the ScriptAPI and give suggestions for new functions you want to see.
Forum rules
By using the forum you agree to the following rules.
Post Reply
android7
Meatbag
Posts: 7
Joined: Sat Aug 27, 2016 11:54 am

SetAmbientSound input?

Post by android7 » Sat Nov 25, 2017 11:41 am

What do I put in.SetAmbientSound()?

Im just trying to spawn sound area, but I don't know what can put in.

Code: Select all

        public void OnStartup()
        {
            IObjectSoundArea noise = (IObjectSoundArea)Game.CreateObject("SoundArea");
            noise.SetAmbientSound(  ?? );
}
0 x

User avatar
Gurt
Lead Programmer
Lead Programmer
Posts: 901
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 27

Post by Gurt » Sat Nov 25, 2017 2:16 pm

Ambient sound ID is the same as the filename without extension found in the Data\Sounds\Ambient\ folder. Adding this to the ScriptAPI documentation next update to clarify.
1 x
Gurt

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest