# Item Spawner

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

## Overview

The item spawner spawns items when a character enters the collider. These then spawn randomly in a radius determined by the Radius variable.\
\
These then spawn at the Spawn Point.\
\
You can set a min/max amount to spawn as well as a min/max quantity that will be given to the player when picking up the item. \
\
You can even set a chance for spawning! At a very basic level this can be used in loot scenarios.

## Variables

### Items

A list of items to spawn with various properties such as:

* Item - which item to spawn
* Min - The minimum amount to spawn
* Max - The maximum amount to spawn
* Quantity Min - The minimum amount of items to give the player when picking up
* Quantity Max - The maximum amount of items to give the player when picking up
* Chance - A chance to spawn the item

### Spawn Point

The transform to spawn the items at

### Radius

The radius of the items spawning around the box.


---

# 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://malbersanimations.gitbook.io/animal-controller/item-spawner.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.
