HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Random Thunder sound as Variable Array

07-18-2003, 10:43 PM#1
Snake
Hi im trying to make a variable array which will play random thunder sounds, I have 2 different triggers, they look like this.
---------------------------------------------
Map initialization
Set Randomthunder[random number 1 through 4] = ThunderPlay
Set Randomthunder[1] = thun1
Set Randomthunder[2] = thun2
Set Randomthunder[3] = thun3
Set Randomthunder[4] = thun4

Periodic time event= every 20 seconds of the game
Play ThunderPlay

---------------------------------------------
Ive tried this for a variable array but it doesnt seem to work, any suggestions for a way to get these thunder sounds to play every 20 seconds of the game?
07-19-2003, 12:28 AM#2
Taion
You've got it backwards. The first action in the trigger will set Randomthunder to ThunderPlay. You want it the other way around.


Set ThunderPlay = Randomthunder[random number 1 through 4]
07-19-2003, 10:37 PM#3
Snake
Thanks man, I didnt think it made a difference.
07-19-2003, 11:12 PM#4
piRo-piOn
it would be nicer if you did every 20 seconds play RandomThunder[random number 1 to 4] as that would make it alternate.