Too many bullets!

I want to get my player to shoot bullets continuously, but I can’t add anything to the scene hierarchy inside a setInterval function.
https://playcanvas.com/editor/code/539704?tabs=11863399&line=27&col=26&