> For the complete documentation index, see [llms.txt](https://malbersanimations.gitbook.io/animal-controller/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://malbersanimations.gitbook.io/animal-controller/item-spawner.md).

# Item Spawner

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2Fh7Sk3mX6DPQxtAad4WH8%2Fimage.png?alt=media&amp;token=f52385ae-8bfc-4dd5-8a1e-03add5f5b9f6" 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.
