> 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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://malbersanimations.gitbook.io/animal-controller/item-spawner.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
