[SCRIPT] Some sounds aren't playing - 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: [SCRIPT] Some sounds aren't playing (/thread-18379.html) |
Some sounds aren't playing - Ungotter - 09-16-2012 I'm back again >.> I'm now having a problem with my script which I can't seem to find a solution for by searching. I've placed various sounds throughout my map and I can't get 90% of them working. The only one that works is one I have attached to a door. Otherwise, I can't get them to work. I've created a type of arrest scene towards the end. Which will be refined in greater detail when/if this problem is solved, but right now I'd rather pause on my progression until I can get these sounds to work PHP Code: void OnStart() The only sound that plays is PlaySoundAtEntity("PlatformDoor", "29_exit_door.snt", "castle_portcullis_3", 0.1f, false); I read on the wiki you can set the entity to "Player" but it seems that isn't the case for me. Thanks again! RE: Some sounds aren't playing - crisosphinx - 09-17-2012 Maybe it's just me (and I'm no good at programming), but I see tons of ("on enter/ on start", false) Shouldn't the false be turned to true? edit: sorry I probably shouldn't have posted if it were the case, but I noticed that and thought maybe that was your problem? RE: Some sounds aren't playing - i3670 - 09-17-2012 you got to have the .snt the .ogg won't work, that only works with PlayMusic. RE: Some sounds aren't playing - Ungotter - 09-17-2012 (09-17-2012, 12:23 AM)crisosphinx Wrote: Maybe it's just me (and I'm no good at programming), but I see tons of ("on enter/ on start", false)Do you mean the debug messages? If so, they should be like that I believe. Additionally, if you mean the sounds I added false at the end because...that's what I read :p I've tried it both true and false, didn't change a thing (09-17-2012, 12:23 AM)i3670 Wrote: you got to have the .snt the .ogg won't work, that only works with PlayMusic.Oh really? Christ why isn't that made more obvious (ah boi). Thank you so much! RE: Some sounds aren't playing - i3670 - 09-17-2012 I think it's pretty obvious asSoundFile - the sound to use + extension .snt fresh from the wiki RE: Some sounds aren't playing - Ungotter - 09-17-2012 (09-17-2012, 12:27 AM)i3670 Wrote: I think it's pretty obviousI feel foolish, I didn't see that. Ah well, at least I know now, thanks for pointing it out RE: Some sounds aren't playing - i3670 - 09-17-2012 No problem, glad to help. |