Pkeod
February 4, 2019, 6:13am
1
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.
britzl
February 4, 2019, 7:54am
2
This doesn’t look right. The second argument should be a function that will get called when the emitter state changes.
Pkeod
February 4, 2019, 8:27am
3
Ah, I misread the autocomplete. Still, it works with that and not without…
Pkeod
February 4, 2019, 8:29am
4
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).
Pkeod
February 4, 2019, 8:31am
5
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