Making a fire trap

How do I…
Make a fire trap (particle)
that at a certain time, the obstacle breathes fire, and at another time, it stops.

Use an object timer along with a boolean object variable to indicate whether the trap is on or off.

Start the object timer. When it reaches a time limit, toggle the boolean object variable. If the variable is now true, start the particle emitter, and if it’s false pause the emitter.

Okay thanks a lot, I appreciate