Can some one please rewrite or tell why this script for random footsteps within the collisionSoundEffects script isn't working, thanks Matt
var audioClip : AudioClip;
var volumeModifier = 1.0;
var soundEffectPitchRandomness = 0.05;
var audioSources : AudioClip[];
function Start ()
{
audioSources = new AudioClip[5];
}
function collisionSoundEffect.GetRandomClip(5);
{
var nextClip = audioSources;
audio.clip = nextClip;
audio.Play();
}