Posted by: Smoke39
« on: June 23, 2018, 03:37:23 PM »If you've watched the video, I'm having some issues trying to make the assault rifle have randomizing sounds without them overlapping or go outright missing. Think someone can help out with that with the ksnd editing?
I'm guessing you're putting all the variants in one .ksnd and setting "random" for each to 1/[number of variants]? Each sound's chance of playing is independent, so you'll need to pick the sound to play in script. Here's one method you could use:
Code: [Select]
// play a random sound among "FEAR_AR_Fire0.ksnd" through "FEAR_AR_Fire3.ksnd"
self.PlaySound( "sounds/shaders/FEAR_AR_Fire" + Math::RandMax(4) + ".ksnd" );