None of your suggestions worked. Should i just scrap this idea?
I made a gun with a looping sound effect and it worked just fine using most of the methods described in this thread.
This may or may not work but try putting the stateScript for the onStopFire function in this block of code instead:
stateName[1] = "Ready";
stateTransitionOnNoAmmo[1] = "ReloadStart";
stateTransitionOnTriggerDown[1] = "Fire";
stateAllowImageChange[1] = true;
stateSequence[1] = "idle";