Scripting issues: sounds & other. - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Scripting issues: sounds & other. (/thread-10064.html) Pages:
1
2
|
RE: Scripting issues: sounds & other. - ObsidianLegion - 08-30-2011 (08-30-2011, 09:47 PM)Enexeus Wrote:(08-30-2011, 09:39 PM)Lolnesia09 Wrote:(08-30-2011, 09:31 PM)Enexeus Wrote:(08-30-2011, 09:20 PM)Lolnesia09 Wrote: Try upping the Volume to 60. If i'm not mistaken it's out of 100. Like a master volume control. Set a min distance to 1. Set use3D to true. See if that works. Umm a sound file isn't an entity. Look something up in the Functions page. Like Onstart() { SetEntityPlayerInteractCallback("YourKeyName", "Musicplay", true); } void Musicplay(string &in asEntity) { PlayMusic("pianosound_1.snt", true/false*, 50, 0, 1, true/false*); } Try that *The first true/false is to state weather you want the sound to loop *The second true/false mentions bool abResume I don't know what that does so play around with that RE: Scripting issues: sounds & other. - Juby - 08-30-2011 To correct you in the very first post, it's general_piano01.snt not Pianosound_1.snt RE: Scripting issues: sounds & other. - xiphirx - 08-31-2011 Where is the actual sound file (.ogg) in relation to the .snt file? (should be next to each other based on your snt file) RE: Scripting issues: sounds & other. - Enexeus - 08-31-2011 (08-30-2011, 10:24 PM)Lolnesia09 Wrote: Umm a sound file isn't an entity. Meh... it didn't work :/ I have no idea as to why some sounds do work and other don't. (08-30-2011, 10:43 PM)Juby Wrote: To correct you in the very first post, It's a custom sound I imported. (08-31-2011, 03:55 AM)xiphirx Wrote: Where is the actual sound file (.ogg) in relation to the .snt file? (should be next to each other based on your snt file) Yeah, they're placed next to eachother. Lolnesia09, thanks for your solution. But I just might end up using the PlayGuiSound after all, since it's a lot easier to work with, hehe. Thanks! RE: Scripting issues: sounds & other. - ObsidianLegion - 08-31-2011 It's okay my friend! Happy creating! |