var destroy_effect

Sets the particle animation to be played once an entity is destroyed. destroy_effect must be declared in _ready and must be instanced as it points to a scene.

func _ready:
       destroy_effect = Global.EFFECT_EXPLODE.instance()