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

# AI Spawner placement

#### Legacy Documentation — Calysto World 5.7 and Earlier

This workflow is not the current Calysto World 5.8 workflow.

One of the popular requests I had was the ability to add enemies per biome. Creating a full AI spawner system would have been out of scope for Massive World but I have added the spawning logic on a separate graph so you can use Massive World to do the placement and make it spawn your own spawner system.

Look for the PCG\_BiomeWithAISpawner graph and duplicate it. It is meant to be added to your copy of the DT\_Biome (your biome database). The content of that graph is mostly the same as the PCG\_Biome with only the added spawners.

<figure><img src="https://3223403327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5xsfjHEQXblHDG7WFyoC%2Fuploads%2FL1pAPCpTsT5CzN1VQczp%2Fimage.png?alt=media&amp;token=a068cbf0-f311-4662-a219-0a5b70d6a9e5" alt=""><figcaption></figcaption></figure>

The added portion of the graph looks like this and I have added a few notes in it. The first one allows you to control the density of points where the spawner will appear, while the Density Filter will randomly remove a few ones.

Finally, your AI Spawner goes into the "Spawn Actor" node.

<figure><img src="https://3223403327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5xsfjHEQXblHDG7WFyoC%2Fuploads%2F52uGRSA1C6E4odoCFpb7%2Fimage.png?alt=media&amp;token=fbb996f8-6d6e-4b54-952d-73eeae913c35" alt=""><figcaption></figcaption></figure>

You can also hit "D" on the "Density Filter" node, this will put the filter on debug mode and show you an example of where the spawner will appear.

<figure><img src="https://3223403327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5xsfjHEQXblHDG7WFyoC%2Fuploads%2FKKmePT1PuqTMLL9nhBVF%2Fimage.png?alt=media&amp;token=1702cd0a-9c5c-42fb-98d2-0b0588ea0abf" alt=""><figcaption></figcaption></figure>

The debug will look like those small cubes from black to white.

<figure><img src="https://3223403327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5xsfjHEQXblHDG7WFyoC%2Fuploads%2FsZdcmQFA9XyiSda53odo%2Fimage.png?alt=media&amp;token=7dff9417-4694-45c2-834f-aaea7ffa8eee" alt=""><figcaption></figcaption></figure>
