Top Down Stealth Toolkit

any advice on setting up an automatic weapon? I thought setting the ‘use item’ event to trigger on a while loop conditional to the button being pressed down, but for some reason that just causes an infinite loop and game crashes… any ideas?