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
  • Making a hunk of meat to chase:
  • How to adjust the range of tracking targets:
  1. Walkthroughs

How to Make Swarm Targets

PreviousHow to Add to a Custom LevelNextHow to use Custom Characters and Animations

Last updated 8 days ago

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

Making a hunk of meat to chase:

To add a target besides the player to your swarms, follow these steps:

  1. Make a blueprint actor titled BP_MeatHunk or whatever you want to name it.

  2. Add the AC_SwarmTarget component to your BP_MeatHunk actor.

  3. On begin play or the event when tracking should start, call the Add to Zombie Targets function from the AC_SwarmTarget component.

  1. if you destroy or no longer want it to be trackd, call the Remove from zombie targets function from the AC_SwarmTarget component.

  1. Thats it, now you can spawn this as a throwable item and the zombies will chase it if its in range. I will tell you how to adjust the range next.

How to adjust the range of tracking targets:

  1. Find the behavior tree folder in the demo content, this may have moved to your main project directory if you went through Getting Setup already.

  1. Open the BT_Zombies behavior tree and click the find swarm target task.

  1. Click the task and adjust the Tracking Max Distance variable in the details panel.

If you can't find the Details panel, go to Window > Details and ensure it's set to true in the top editor toolbar.

  1. Thats it, the radius for their tracking will now be updated.