[SCRIPT] Sounds don't play - 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] Sounds don't play (/thread-19533.html) Pages:
1
2
|
Sounds don't play - The chaser - 12-12-2012 Hello everyone! So, I needed to make some random wind, to add ambience. The beggining code worked pretty well, but the same sound got repeated over and over again. I made a RandInt system but the windysound_+Int don't work. Code: void OnStart() What could be wrong? Thanks in advance RE: Sounds don't play - Juby - 12-12-2012 It might be that you have such things as: 1.f and 0.f in there when you are supposed to either have 1, 1.0f, 0, 0.0f RE: Sounds don't play - The chaser - 12-12-2012 (12-12-2012, 09:57 PM)Juby Wrote: It might be that you have such things as:Nope, doesn't work. RE: Sounds don't play - FlawlessHappiness - 12-12-2012 Well you might want to choose where you want the sound to play. PlaySoundAtEntity("wind_amb", "wind_amb.snt", "", 1.f, false); You write something like "Player". Right now it playing nowhere because you didn't put anything in there. It should look like this: PlaySoundAtEntity("wind_amb", "wind_amb.snt", "Player", 1.f, false); RE: Sounds don't play - The chaser - 12-12-2012 (12-12-2012, 10:45 PM)beecake Wrote: Well you might want to choose where you want the sound to play.Yea, it worked well for the main ambience. But, I want that windysound_+Int sounds aleatorially. RE: Sounds don't play - FlawlessHappiness - 12-13-2012 (12-12-2012, 10:58 PM)The chaser Wrote: aleatorially.What does this word mean? RE: Sounds don't play - The chaser - 12-13-2012 (12-13-2012, 07:02 AM)beecake Wrote:In spanish, random is "Aleatorio". I thought aleatorially existed in english XD(12-12-2012, 10:58 PM)The chaser Wrote: aleatorially.What does this word mean? I've made a test and it isn't that sounds don't plat, the same function isn't called. Why is that? RE: Sounds don't play - JMFStorm - 12-13-2012 Code: void OnStart() RE: Sounds don't play - The chaser - 12-13-2012 (12-13-2012, 07:56 AM)JMFStorm Wrote:I already tried that and it cause an error: Expected ";". Thanks for the replies RE: Sounds don't play - FlawlessHappiness - 12-13-2012 Can you fix the error? |