rakakak11
Junior Member
Posts: 20
Threads: 3
Joined: Jul 2012
Reputation:
0
|
RE: How i can reload script area when i die ? And how to create loopable sounds ?
(08-01-2012, 12:36 AM)andyrockin123 Wrote: (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. thanks
|
|
08-01-2012, 01:25 AM |
|