VerseIsland
FeedLearnLeaderboardGuidesReferenceExploreSearchDocsVerse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Browse UEFN›NPCs & AI·Up to UEFN · NPCs & AI·2 of 69 in NPCs & AI

Create Custom NPC Behavior in UEFN

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 documentation

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

Guided course

Add this to your free study plan — we’ll suggest related material and stitch it into one compile-checked lesson.

Keep exploring
More in NPCs & AI · 2 of 69
Prev
ai and npcs in unreal editor for fortnite
Next
create your own npc medic in verse
Browse all files in this folder (A–Z)

Source

Epic Games documentation

View original

Last updated 2026-07-26T12:39:54.266806+00:00

VerseIsland· an archipelago of Verse & UEFN knowledge
🗺️ Island atlasLearnGuidesHistoryAbout & PressSources & LicensingPrivacy PolicyTermsStatus

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