(08-01-2012, 12:25 AM)rakakak11 Wrote: This is what im looking for !!!
Sound now work but the "scare_male_terrified" didnt work... i deleted this "scare_male_terrified"
+RandInt(1, 3) and now "scare_male_terrified" sound work ! Im again really grateful for help.
But what is this thing that i deleted ? "+RandInt(1, 3)"
RandInt(1, 3) will create a Random Integer (whole number, not a decimal) between the amounts provided. When the function is called, it would produce either 1, 2, or 3. Same idea with the timer, it will make a random number from 30 to 60. In my opinion, using Random Integers is ideal for random ambient sounds.
I sorta contradicted what I said earlier though; scare_male_terrified1/2/3 are .ogg, not .snt, so they wouldn't work. Just using the scare_male_terrified alone would randomly pick from the set.
I rate it 3 memes.