Ai Zombie Swarms Documentation Portal
  • Welcome
  • Getting Started
    • Getting Setup
    • Common Troubleshooting
  • Walkthroughs
    • How to Add to a Custom Level
    • How to Make Swarm Targets
    • How to use Custom Characters and Animations
    • How to Adjust Spawn Amounts
    • Using the Character Optimizer Component
  • Feedback
    • Feedback Requests
Powered by GitBook
On this page
  • How to adjust spawn amounts:
  • Adjusting the per spawner amount:
  • Adjusting the number of spawners in the world
  • Setting a global limit to spawn counts:
  1. Walkthroughs

How to Adjust Spawn Amounts

PreviousHow to use Custom Characters and AnimationsNextUsing the Character Optimizer Component

Last updated 8 days ago

This page covers how to use the features of Procedural NPC Crowds in Blueprints.

How to adjust spawn amounts:

There are 3 major ways to adjust spawn amounts in AI Zombie Swarms, I will show you all the ways here.

Adjusting the per spawner amount:

  1. To adjust the max spawn per spawner, go to the BP_SwarmSpawner actor and change the max spawn amount.

Adjusting the number of spawners in the world

  1. To adjust the number of spawners, go to the BP_SwarmPath actor and find the Place Swarm Spawners event. From there, adjust the Spline Distance addition value. By default, it is set to 600, which spawns many spawners. I recommend values between 2000-4000 if you are not using the limiter system described below.

IMPORTANT: Do not put this at 0 or you will lock up the editor with an infinite recursive function.

Setting a global limit to spawn counts:

  1. Access the Procedural Zombies Subsystem by searching for it in the blueprints context menu.

  1. on the BP_SwarmSpawner put a branch check before the spawn amount with the Limit Zombies Spawned from the procedural zombies subsystem, give it a value of the maximum you want to spawn in a level.

  1. Now go to your Zombie Character class and on begin play use the Increment Zombie Spawned count node from the zombies subsystem.

  1. On EndPlay of the zombie character use the Decrement Zombies Spawned Count node.

  1. That's it, there will now never be more zombies/swarms than you specify.