Share questions and tutorials related to the ScriptAPI and give suggestions for new functions you want to see.
- Posts: 7
- Joined: Sat Aug 27, 2016 11:54 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( ?? );
- Lead Programmer
- Posts: 901
- Joined: Sun Feb 28, 2016 3:22 pm
- Title: Lead programmer
- Started SFD: Made it!
- Location: Sweden
- Age: 27
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.
Who is online
Users browsing this forum: No registered users and 1 guest