using { /Fortnite.com/AI }
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
# This is our "Manager" device. It lives in the scene graph.
# Think of it as the stage manager holding the clipboard.
PatrolManager := class(creative_device):
AI
moduleAI<public> := module
- Module
- /Fortnite.com/AI
- Source
- fortnite
Used in
#
# Guards are the one NPC type with combat AI built in: they idle, patrol, grow
# suspicious, go alert, and attack — all on their own. The guard_spawner_device
# lets Verse tune that built-in brain and react to it. Here one button posts the
# guards and tightens their senses; a second button hires the whole squad to the
# presser's team; and we log every alert so you can see the FSM tick over.
guard_post_device := class(creative_device):
Custom NPC Behavior: Teaching a Villager to Flee
verse-library
using { /Fortnite.com/AI }
using { /Fortnite.com/Characters }
using { /Fortnite.com/Game }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/SpatialMath }
using { /UnrealEngine.com/Temporary/Diagnostics }
Make Your Own Friendly Guard NPC
verse-library
using { /Fortnite.com/AI }
# This is our NPC Behavior class.
# It inherits from npc_behavior.
# This means our script has all the AI tools.
FriendlyGuardBehavior <: npc_behavior:
# 2. It creates a new Entity in the Scene Graph
# 3. It applies the stats (Health, Speed) from the Definition
# 4. It applies the Visuals (Cosmetics) from the Definition
New_Entity = Create_Entity_From(Definition)
# 5. The Entity is now active and ready for AI to take over
Return New_Entity
Make Your NPCs Talk Back: The Verse AI Voiceline Manager
verse-library
using { /Fortnite.com/Devices } # Gives us access to Audio Players, Triggers, etc.
using { /Fortnite.com/AI } # Gives us access to NPC-specific logic
using { /Verse.org/Simulation } # The core engine logic
# This is our Custom Device Blueprint
# We call it 'concrete' because it's a real device you can place in the world
ai_voiceline_manager := class<concrete>:
How to Talk to Your NPC: Getting the Agent in Verse
verse-library
using { /Fortnite.com/AI }
using { /Fortnite.com/Characters }
using { /Fortnite.com/Game }
using { /Verse.org/Simulation }
# This is our main script structure.
# Think of this as the "Brain" of the NPC.
Make Your NPCs Actually Walk: The Navigatable Interface
verse-library
using { /Fortnite.com/Characters }
using { /Fortnite.com/AI }
using { /UnrealEngine.com/Temporary/SpatialMath }
using { /Verse.org/Simulation }
# This is our main script structure.
# Think of it as the "Brain" of our island feature.
loot_goblin_behavior := class(creative_device):
Sidekick Companion: A Pet That Follows and Feels
verse-library
using { /Fortnite.com/AI }
using { /Fortnite.com/Characters }
using { /Fortnite.com/Playspaces }
using { /Verse.org/Simulation }
using { /Verse.org/SceneGraph }
using { /UnrealEngine.com/Temporary/Diagnostics }
Build a Friendly NPC Medic in Fortnite
verse-library
# It tells the NPC how to behave.
using { /Fortnite.com/AI }
using { /Fortnite.com/Characters }
using { /Fortnite.com/Game }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /Verse.org/Simulation }
# We create a new type of NPC behavior.