> 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="/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.
