<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Documentation - ai-and-npcs-in-unreal-editor-for-fortnite</title>
  <style>
    body { 
      font-family: monospace; 
      margin: 0;
      padding: 0;
    }
    pre { 
      background-color: white; 
    }
  </style>
</head>
<body>
  <pre>1.  ![Epic Games](https://edc-cdn.net/assets/images/logo-epic.svg)[Developer](/)
2.  [Documentation](/documentation/ "Documentation")

4.  Fortnite
    *   [Unreal Engine](/documentation/en-us/unreal-engine)
    *   [Fortnite](/documentation/en-us/fortnite)
    *   [MetaHuman](/documentation/en-us/metahuman)
    *   [Twinmotion](/documentation/en-us/twinmotion)
    *   [RealityScan Mobile](/documentation/en-us/realityscan-mobile)
    *   [Fab](/documentation/en-us/fab)
5.  [Fortnite Documentation](/documentation/en-us/fortnite/fortnite-documentation "Fortnite Documentation")
6.  AI and NPCs

AI and NPCs
===========

Learn how to use NPCs and create custom AI logic and behaviors for your islands!

![AI and NPCs](https://dev.epicgames.com/community/api/documentation/image/3d3f967d-ce28-446f-b9e3-c61474995679?resizing_type=fill&width=1920&height=335)

In this section, you'll find everything you need to know about using artificial intelligence (AI) and non-playable characters (NPCs) on your island. This allows you to add a variety of gameplay and facilitate interesting interactions between the player and creatures and characters!

To understand how creating NPCs and AI behaviors work in UEFN, check out:

*   [Understanding NPC Behaviors](https://dev.epicgames.com/documentation/en-us/fortnite/understanding-npc-behavior-in-unreal-editor-for-fortnite)
    
*   [NPC Types](https://dev.epicgames.com/documentation/en-us/fortnite/npc-types-in-unreal-editor-for-fortnite)
    

One way to quickly set up and add custom behavior to an NPC is with the NPC Spawner Device. In this section, you’ll find all the information you need:

*   [NPC Spawner Device](using-npc-spawner-devices-in-unreal-editor-for-fortnite)
    
*   [NPC Character Definition](https://dev.epicgames.com/documentation/en-us/fortnite/using-npc-character-definitions-in-unreal-editor-for-fortnite)
    
*   [Using the NPC Spawner with Animations](https://dev.epicgames.com/documentation/en-us/fortnite/using-the-npc-spawner-with-animations-in-unreal-editor-for-fortnite)
    
*   [Create Custom NPC Behavior page](https://dev.epicgames.com/documentation/en-us/fortnite/create-custom-npc-behavior-in-unreal-editor-for-fortnite)
    

Want to see these concepts and devices in action? Check out our tutorials:

*   [Create Your Own NPC Medic](create-your-own-npc-medic-in-verse)
    

[

![Stronghold Template](https://dev.epicgames.com/community/api/documentation/image/1112f8be-2134-4257-b0af-dee5b34b0bd0?resizing_type=fit&width=640&height=640)

Stronghold Template

Use Verse to create a stealth game where players must eliminate guards.





](https://dev.epicgames.com/documentation/en-us/fortnite/stronghold-template-in-unreal-editor-for-fortnite)[

![Understanding NPC Behaviors](https://dev.epicgames.com/community/api/documentation/image/954fbfd7-ee72-4cb4-89f3-eff4d2ddfac4?resizing_type=fit&width=640&height=640)

Understanding NPC Behaviors

Learn about NPC Behavior and States and how NPCs use them for decision-making





](https://dev.epicgames.com/documentation/en-us/fortnite/understanding-npc-behavior-in-unreal-editor-for-fortnite)[

![NPC Spawner Devices](https://dev.epicgames.com/community/api/documentation/image/b4dcabd7-36f6-498b-9231-6e7dd8e54720?resizing_type=fit&width=640&height=640)

NPC Spawner Devices

Use NPCs to engage with players and liven your gameplay.





](https://dev.epicgames.com/documentation/en-us/fortnite/using-npc-spawner-devices-in-unreal-editor-for-fortnite)[

![NPC Character Definitions](https://dev.epicgames.com/community/api/documentation/image/2a21900a-edf8-465c-9609-9bdaca47aa16?resizing_type=fit&width=640&height=640)

NPC Character Definitions

Create Character Definitions to add attributes that can be imported into the NPC Spawner device.





](https://dev.epicgames.com/documentation/en-us/fortnite/using-npc-character-definitions-in-unreal-editor-for-fortnite)[

![Using the NPC Spawner with Animations](https://dev.epicgames.com/community/api/documentation/image/1590af62-93d3-4eaf-8f3f-98ff87bd64a3?resizing_type=fit&width=640&height=640)

Using the NPC Spawner with Animations

Use custom animations and emotes with the NPC Spawner device and Verse code.





](https://dev.epicgames.com/documentation/en-us/fortnite/using-the-npc-spawner-with-animations-in-unreal-editor-for-fortnite)[

![Create Custom NPC Behavior](https://dev.epicgames.com/community/api/documentation/image/9e99e55e-06b3-4b21-9638-015f4a17afd0?resizing_type=fit&width=640&height=640)

Create Custom NPC Behavior

Use Verse code to create your own NPC behavior unique to your game design needs!





](https://dev.epicgames.com/documentation/en-us/fortnite/create-custom-npc-behavior-in-unreal-editor-for-fortnite)[

![NPC Types](https://dev.epicgames.com/community/api/documentation/image/e7d06166-18a5-426c-89a9-20e6a556eac6?resizing_type=fit&width=640&height=640)

NPC Types

Learn about the different types of NPCs and how each of them works.





](https://dev.epicgames.com/documentation/en-us/fortnite/npc-types-in-unreal-editor-for-fortnite)

*   [ai](https://dev.epicgames.com/community/search?query=ai)
*   [npc](https://dev.epicgames.com/community/search?query=npc)

* * *

Ask questions and help your peers [Developer Forums](https://forums.unrealengine.com/categories?tag=fortnite)

Write your own tutorials or read those from others [Learning Library](https://dev.epicgames.com/community/fortnite/learning)</pre>
</body>
</html>