VerseIsland
Feed Learn Leaderboard Guides Reference Explore Search Docs Verse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Fortnite › NPCs & AI · Up to Fortnite · NPCs & AI · 3 of 147 in NPCs & AI
Browse Fortnite

Create Custom NPC Behavior In Unreal Editor

The behavior of an NPC character is defined by their behavior script. The behavior script is what tells characters what actions to take in the world, such as where to go, what to fight, and how to interact with other characters. Characters such as guards and wildlife may have additional behaviors, such as perception, alertness, and the ability to be hired or tamed.

An NPC Behavior is a user-defined Verse script that adds extra functionality to an NPC character’s existing behaviors. The npc_behavior API lets you define code that runs when an NPC character spawns or despawns, and you can use it to create custom characters like medics, shopkeepers, or bosses. NPC Behaviors inherit from the npc_behavior abstract class and require importing the /Fortnite.com/AI module to use.

To run an NPC Behavior Script, you need to attach it to an NPC Character Definition. How an NPC Behavior Script interacts with a character definition depends on the NPC Character type. Custom-type NPCs need a behavior script to perform actions, while Guard and Wildlife-type NPCs will run their default behavior if they aren’t given a behavior script. For more information on creating an NPC Character Definition and the different character types, see the Character Definition page.

You're reading a preview

The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.

Sign in with Discord — free for members Read the original at Epic Games

Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.

Comments

    Sign in to vote, comment, or suggest an edit. Sign in
    📄
    Source
    Epic Games

    © Epic Games. Official Epic developer documentation, shown here as a reference with a link to the original. All rights remain with Epic Games. Terms ↗

    View original Sources & licensing
    Request removal
    Last updated May 12, 2026
    Keep exploring
    More in NPCs & AI · 3 of 147
    Prev
    ai patrol path node device
    Next
    create your own npc medic in unreal editor for fortnite
    Browse all files in this folder (A–Z)
    Next up
    • To run an NPC Behavior Script, you need to attach it to an [NPC Character Definition
    • Npc Types In Unreal Editor For Fortnite
    • 1. Open your project in UEFN, then in the [Menu Bar
    • 2. In [Verse Explorer
    • or of your new Character Definition.
    • Island Settings In Unreal Editor For Fortnite
    Related topics
    • Understanding Npc Behavior In Unreal Editor For Fortnite Npcs & Ai
    • Npc Character Definitions In Unreal Editor For Fortnite Npcs & Ai
    • Verse Starter 01 Creating The Npc Behavior In Unreal Editor For Fortnite Npcs & Ai
    • Npc Behavior Npcs & Ai
    • Npc Behavior Npcs & Ai

    Related

    Open in graph →

    Related topics

    • Understanding Npc Behavior In Unreal Editor For Fortnite
    • Npc Character Definitions In Unreal Editor For Fortnite
    • Using Npc Character Definitions In Unreal Editor For Fortnite
    • Npc Types In Unreal Editor For Fortnite
    • Verse Starter 01 Creating The Npc Behavior In Unreal Editor For Fortnite
    VerseIsland · an archipelago of Verse & UEFN knowledge
    🗺️ Island atlas Learn Guides History About & Press Sources & Licensing Status

    Not affiliated with Epic Games. Fortnite, UEFN, Unreal Engine, and Verse are trademarks of Epic Games, Inc. Content is attributed to its source — see Sources & Licensing.

    🦜

    Scout · your island guide

    The Isle of Verse