Page 1 of 1

SetAmbientSound input?

Posted: Sat Nov 25, 2017 11:41 am
by android7
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(  ?? );
}

Re: SetAmbientSound input?

Posted: Sat Nov 25, 2017 2:16 pm
by Gurt
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.