GUI particlefx on template does not play normally? (SOLVED)

If I have a template with a particlefx on it, clone its tree, and then play it with

gui.play_particlefx(faerie.nodes[hash("faerie_template/particlefx")])

it does not play normally.

I have to specify with.

gui.play_particlefx(faerie.nodes[hash("faerie_template/particlefx")], gui.EMITTER_STATE_SPAWNING)

If I do

gui.play_particlefx(template_node)

with the template itself the particlefx plays.

This doesn’t look right. The second argument should be a function that will get called when the emitter state changes.

Ah, I misread the autocomplete. Still, it works with that and not without…

I think maybe it has to do with the particular particlefx I have made. It has 6 emitters and even as a GO it does not always consistently play. It seems like I have to tell it to play multiple times (then usually more particles than intended play).

Now it’s working consistently with

	gui.play_particlefx(faerie.nodes[hash("faerie_template/particlefx")])

I have no idea. Maybe something else was wrong before. I’ll mark it as solved for now.

1 Like