This forum is locked and will eventually go offline. If you have feedback to share you can find us in our Discord channel "MythoLogic Interactive" https://discord.gg/nECKnbT7gk

Forum rules

SetAmbientSound input?

Here you can find answered ScriptAPI topics.
Forum rules
By using the forum you agree to the following rules.
Locked
android7
Fighter
Fighter
Posts: 21
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: 1887
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 36

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

Locked