/// PlayFootstepSAX(material) rnd = floor(random(3)); if (argument0 == 0) switch (rnd) { case 0: sfx_play(sndStepNormal0SAX); break; case 1: sfx_play(sndStepNormal1SAX); break; case 2: sfx_play(sndStepNormal2SAX); break; } if (argument0 == 1) switch (rnd) { case 0: sfx_play(sndStepRock0SAX); break; case 1: sfx_play(sndStepRock1SAX); break; case 2: sfx_play(sndStepRock2SAX); break; } if (argument0 == 2) switch (rnd) { case 0: sfx_play(sndStepGrass0SAX); break; case 1: sfx_play(sndStepGrass1SAX); break; case 2: sfx_play(sndStepGrass2SAX); break; } if (argument0 == 3) switch (rnd) { case 0: sfx_play(sndStepStone0SAX); break; case 1: sfx_play(sndStepStone1SAX); break; case 2: sfx_play(sndStepStone2SAX); break; } if (argument0 == 4) switch (rnd) { case 0: sfx_play(sndStepMetal0SAX); break; case 1: sfx_play(sndStepMetal1SAX); break; case 2: sfx_play(sndStepMetal2SAX); break; } if (argument0 == 5) switch (rnd) { case 0: sfx_play(sndStepWet0SAX); break; case 1: sfx_play(sndStepWet1SAX); break; case 2: sfx_play(sndStepWet2SAX); break; }