You can't create patterns with choose() or random() though.
yeah, that's why I used your --- Set counter to counter % 3 + 1 idea
although I changed it to 6 which makes more sense in my case... since I have bullet firing sounds, then every 6th event it changes the sound slightly.
for patterns maybe a better idea would be to make a Function and somehow make it dynamic so that you could use it for multiple things. Make sure all sound files are named the same except for the number.
so pass the function: filename (minus the number), the number of sounds, then the pattern to play and the counter which tells us where we are in the pattern.
i.e.
Call Function ("PlaySoundPattern","gun", 2, "6:1", PlayerShootcounter)
I'm new to Functions in C2 can anyone help here? how would you send a pattern information to a function so that it understands how to play them? patterns like 6:1 or 3:2 or 1:2:1 if there are 3 sounds etc..? how to make it dynamic?