Here you can find answered ScriptAPI topics.
- 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: 1003
- Joined: Sun Feb 28, 2016 3:22 pm
- Title: Lead programmer
- Started SFD: Made it!
- Location: Sweden
- Age: 28
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 0 guests