Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.
New to the forum? Say hello in this topic!
Also make sure to read the rules
Here you can find answered ScriptAPI topics.
- Posts: 8
- 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: 1241
- 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 1 guest