Here’s the set up:
Here’s the script I use to stop the pfx:
function on_message(self, message_id, message, sender)
if message_id == hash("Play") then
particlefx.play("#pfx")
elseif message_id == hash("Stop") then
print('pfx stop')
particlefx.stop("#pfx", { clear = true })
end
end
Here’s how I message the script:
msg.post(soul.collection[hash("/soulPFX")], "Stop")
When I send the message, I get the printed string, but the pfx just keeps on particle-ing.
No errors are given. But I think it’s an addressing problem.