How to destroy component in blueprint when variable changes value

I have a blueprint that spawns an emitter and destroys the emitter and itself after a delay. I would like to instead destroy itself when the value of game instance bool changes to false.