# Looping Explosions Sample

<figure><img src="/files/MIRear53o3rgC9CzkKbO" alt=""><figcaption><p>Looping Explosions Scene</p></figcaption></figure>

ExplosionBombPlacer.cs is a pretty simple script that just spawns a prefab on the mouse position instantly.&#x20;

<figure><img src="/files/3esJu0CjdfWNTzcqt202" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/FkXZCma4tBdfjthUSPIN" alt="" width="469"><figcaption></figcaption></figure>

ExplosionBomb.cs calls `BeatSequencer.CallOnNextInstrumentStep()` to explode the bomb prefab on the next snare hit and spawn a particle system.

<figure><img src="/files/ue6L9zcEOHY93OukwuXk" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/XZh6P7bbaWkrJ0XVDLFL" alt="" width="464"><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rhythm-engine.gitbook.io/rhythm-engine/samples/looping-explosions-sample.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
