---
title: "Adding Agents"
content_type: tutorial
url: "https://learn.unity.com/course/artificial-intelligence-for-beginners/unit/goal-driven-behaviour/tutorial/plans-that-require-multiple-agents?language=en"
language: en
container_type: course
container_title: "Artificial Intelligence for Beginners"
container_url: "https://learn.unity.com/course/artificial-intelligence-for-beginners.md?language=en&version=6.0"
unit_title: "Goal Driven Behaviour"
unit_url: "https://learn.unity.com/course/artificial-intelligence-for-beginners/unit/goal-driven-behaviour?language=en&version=6.0"
standalone_markdown_url: "https://learn.unity.com/tutorial/plans-that-require-multiple-agents.md?language=en&version=6.0"
previous_title: "Creating a Multi-step Plan"
previous_url: "https://learn.unity.com/course/artificial-intelligence-for-beginners/unit/goal-driven-behaviour/tutorial/creating-a-multi-step-plan?language=en&version=6.0"
previous_markdown_url: "https://learn.unity.com/course/artificial-intelligence-for-beginners/unit/goal-driven-behaviour/tutorial/creating-a-multi-step-plan.md?language=en&version=6.0"
next_title: "Adding More Resources to the World"
next_url: "https://learn.unity.com/course/artificial-intelligence-for-beginners/unit/goal-driven-behaviour/tutorial/adding-more-resources-to-the-world?language=en&version=6.0"
next_markdown_url: "https://learn.unity.com/course/artificial-intelligence-for-beginners/unit/goal-driven-behaviour/tutorial/adding-more-resources-to-the-world.md?language=en&version=6.0"
difficulty: intermediate
duration_minutes: 20
unity_version:
  - "6.0"
supported_unity_versions:
  - name: "6.0"
    url: "https://learn.unity.com/course/artificial-intelligence-for-beginners/unit/goal-driven-behaviour/tutorial/plans-that-require-multiple-agents.md?language=en&version=6.0"
  - name: "2021.3"
    url: "https://learn.unity.com/course/artificial-intelligence-for-beginners/unit/goal-driven-behaviour/tutorial/plans-that-require-multiple-agents.md?language=en&version=2021.3"
  - name: "2019.4"
    url: "https://learn.unity.com/tutorial/plans-that-require-multiple-agents.md?language=en&version=2019.4"
  - name: "2019.3"
    url: "https://learn.unity.com/tutorial/plans-that-require-multiple-agents.md?language=en&version=2019.3"
  - name: "2019.2"
    url: "https://learn.unity.com/tutorial/plans-that-require-multiple-agents.md?language=en&version=2019.2"
  - name: "2019.1"
    url: "https://learn.unity.com/tutorial/plans-that-require-multiple-agents.md?language=en&version=2019.1"
last_updated: "2026-08-04T14:25:02.000Z"
---

# Adding Agents

Practice building queues that store GameObjects as reusable resources for planning in your project.

In this tutorial students will being building queues to hold game objects as resources that can be used in the planning process.

## 1. Spawning Patients

In this lecture students will create a spawner for patients and place it outside the hospital.

[Video](https://storage.googleapis.com/learn-platform-bucket-production/tutorial/fb497869-0931-5519-a9b9-2df70a44e7b9/versions%5B_key==%22bfaf3dab36a770955da216022e602083%22%5D.sections%5B_key==%22JpI72pm885s7ezHBZkr8Li%22%5D.body%5B_key==%22JpI72pm885s7ezHBZkr8Mv%22%5D.overviewVideo/S1011_20260320_072512.mp4) ([Transcript (en)](https://storage.googleapis.com/learn-platform-bucket-production/tutorial/fb497869-0931-5519-a9b9-2df70a44e7b9/versions%5B_key==%22bfaf3dab36a770955da216022e602083%22%5D.sections%5B_key==%22JpI72pm885s7ezHBZkr8Li%22%5D.body%5B_key==%22JpI72pm885s7ezHBZkr8Mv%22%5D.subtitles/S1011%20VTT%20en_20260525_221549.vtt))

## 2. Plans that Require Multiple Agents

In this lecture students will work to create a plan for the nurse that is triggered by a change in world states.

[Video](https://storage.googleapis.com/learn-platform-bucket-production/tutorial/fb497869-0931-5519-a9b9-2df70a44e7b9/versions%5B_key==%22bfaf3dab36a770955da216022e602083%22%5D.sections%5B_key==%22JpI72pm885s7ezHBZkr8QY%22%5D.body%5B_key==%22JpI72pm885s7ezHBZkr8Rl%22%5D.overviewVideo/S1012_20260320_072540.mp4) ([Transcript (en)](https://storage.googleapis.com/learn-platform-bucket-production/tutorial/fb497869-0931-5519-a9b9-2df70a44e7b9/versions%5B_key==%22bfaf3dab36a770955da216022e602083%22%5D.sections%5B_key==%22JpI72pm885s7ezHBZkr8QY%22%5D.body%5B_key==%22JpI72pm885s7ezHBZkr8Rl%22%5D.subtitles/S1012%20VTT%20en_20260525_221601.vtt))

## 3. Matching Agents with Agents

In this tutorial, students will learn how actions can be shared between differing agent types.

[Video](https://storage.googleapis.com/learn-platform-bucket-production/tutorial/fb497869-0931-5519-a9b9-2df70a44e7b9/versions%5B_key==%22bfaf3dab36a770955da216022e602083%22%5D.sections%5B_key==%22JpI72pm885s7ezHBZkr8VO%22%5D.body%5B_key==%22JpI72pm885s7ezHBZkr8Wb%22%5D.overviewVideo/S1013_20260411_052156.mp4) ([Transcript (en)](https://storage.googleapis.com/learn-platform-bucket-production/tutorial/fb497869-0931-5519-a9b9-2df70a44e7b9/versions%5B_key==%22bfaf3dab36a770955da216022e602083%22%5D.sections%5B_key==%22JpI72pm885s7ezHBZkr8VO%22%5D.body%5B_key==%22JpI72pm885s7ezHBZkr8Wb%22%5D.subtitles/S1013%20VTT%20en_20260525_225101.vtt))
