# SpawnItemWhenDetonated

## CustomFlag: SpawnItemWhenDetonated

**Description:** Spawns an item when the subject detonates/activates. Configure type, ID, despawn time, chance, and pickupability.

**Parameters:**

* `item_type` — `UCI`, `ECI`, or `Normal`.
* `item_id` — Numeric ID for `Normal`-type items (or plugin-specific ID).
* `time_till_despawn` — Seconds until spawned item despawns.
* `chance` — Percent chance the spawn will occur (0–100).
* `pickupable` — `true` if the spawned item can be picked up.

**Example Yaml context:**

```yaml
flag_settings:
  spawn_item_when_detonated_settings:
  - item_type: Normal
    item_id: 1
    time_till_despawn: 6
    chance: 100
    pickupable: false
```


---

# 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://docs.uci.ucserver.it/api/customflagsettings/spawnitemwhendetonated.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.
