Emmiting turning off when I enable One shot

Godot Version

4.2.1

Question

I am trying to make a spark for a bullet hole that only goes off once after the bullet hits, but every time I enable one shot in the particle editor, after I run the scene “emitting” gets disabled. How do I fix this.

when you are using one shot, and you want to trigger it from code, it’s best to

.restart() 

before

.emitting=true