# How to use SetNPCCharacterDefinition?

**URL:** <https://forums.unrealengine.com/t/how-to-use-setnpccharacterdefinition/2744127>\
**Category:** Verse\
**Tags:** npc, unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [August 16, 2026, 10:59am UTC](https://forums.unrealengine.com/t/how-to-use-setnpccharacterdefinition/2744127 "2026-08-16T10:59:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Adb](https://forums.unrealengine.com/u/Adb)\
**Post date:** [August 16, 2026, 10:59am UTC](https://forums.unrealengine.com/t/how-to-use-setnpccharacterdefinition/2744127/1 "2026-08-16T10:59:33Z")

</div>

The function implies that you can dynamically set the NPCCharacterDefinition of NPCs, but CharacterDefinition assets are not reflected in Verse, apparently by design:  
[NPC Character Definition assets are not reflected in the digest - General / Issues and Bug Reporting - Epic Developer Community Forums](https://forums.unrealengine.com/t/npc-character-definition-assets-are-not-reflected-in-the-digest/2734464)

So how do you actually use it?

---

<div class="post-metadata">

**Author:** ![Boschkoo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/boschkoo/32/1198267_2.png) [@Boschkoo](https://forums.unrealengine.com/u/Boschkoo)\
**Post date:** [August 17, 2026, 11:26pm UTC](https://forums.unrealengine.com/t/how-to-use-setnpccharacterdefinition/2744127/2 "2026-08-17T23:26:58Z")

</div>

You don’t load the asset from the digest. Epic closed that as working as intended:

> [@NPC Character Definition assets are not reflected in the digest](https://forums.unrealengine.com/t/npc-character-definition-assets-are-not-reflected-in-the-digest/2734464):
>
> Summary npc\_character\_definition assets do not appear in the generated Assets.digest.verse, even though they can be assigned and used through editable properties Please select what you are reporting on: Verse What Type of Bug are you experiencing? Assets Steps to Reproduce Create an NPC Character Definition asset in the editor Compile Verse Expected Result Created NPC Character Definition asset should be reflected in Assets.digest.verse Observed Result Created NPC Character Definition asse…

NPC Character Definitions are assigned in the editor through `@editable`, then handed to the spawner at runtime.

```auto
using { /Fortnite.com/Devices }

npc_def_switcher := class(creative_device):
    @editable
    NPCSpawner : npc_spawner_device = npc_spawner_device{}

    @editable
    DefinitionA : npc_character_definition = npc_character_definition{}

    @editable
    DefinitionB : npc_character_definition = npc_character_definition{}

    SwapToB():void=
        if (NPCSpawner.SetNPCCharacterDefinition[DefinitionB]):
            # same character type — ok
        else:
            # failed — character type changed (guard vs wildlife vs custom)

```

Setup:

1. Create the NPC Character Definition assets in the Content Browser as usual.
2. Place this device, assign Definition A / B and the spawner in Details.
3. Call `SetNPCCharacterDefinition` **before** spawn. If something is already out, despawn first, then set, then spawn.

The call is `<decides>`, so it has to sit in an `if`. Docs: it fails when the new definition’s character type doesn’t match the current one. Guard → guard is fine. Guard → custom wildlife is not.

You can’t construct an `npc_character_definition` from a path string. No `/Assets/...` handle. Editor reference is the whole API.
