Bug Report: mesh_component not working on NPC FortCharacter entities

Summary

When attaching a mesh_component (and an interactable_component) to the Entity retrieved from an NPC fort_character, the component does not appear or become interactable.
However, the exact same code works correctly for a player fort_character.

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Verse

Steps to Reproduce

Non-working NPC code
NpcAgent := NpcSpawnerDevice.SpawnedEvent.Await()
if:
    FC := NpcAgent.GetFortCharacter[]
    FCEntity := FC.GetEntity[]
then:
    FCEntity.AddComponents(array:
        Mesh: component = Meshes.SM_NPC_Interaction:
            Entity := FCEntity
        interactable_component:
            Entity := FCEntity
    )
Working player code
if:
    FC := Player.GetFortCharacter[]
    FCEntity := FC.GetEntity[]
then:
    FCEntity.AddComponents(array:
        Mesh: component = Meshes.SM_NPC_Interaction:
            Entity := FCEntity
        interactable_component:
            Entity := FCEntity
    )

Expected Result

mesh_component and interactable_component should appear and function on both NPC and player fort_character entities.

Observed Result

  • Both snippets use identical logic.
  • Only the source of the fort_character differs (NPC vs Player).
  • The NPC’s entity receives the components but they do not render or behave interactably.

Platform(s)

UEFN v38.10, Windows PC

Probably because the NPC have already mesh component with sort of skeletal mesh component I guess

But the FortCharacter for both player and NPC is the same class, right? I also tried getting the mesh_component from it and casting it to my custom mesh. Both the get and the cast work, so the mesh_component is definitely added successfully. But for some reason, it still doesn’t show up or do anything.

1 Like

Interesting. It’s the same behavior with sidekick entities

Is the entity obtained from npc_behavior the same as the NPC’s fort_character entity? After the 39.00 update, it seems to be working again, but the behavior that used to work in v38.10 no longer works. Specifically, creating a new Entity at runtime and adding an interactable_component and mesh_component no longer works. The mesh still appears, but the interaction text does not. Entity Prefabs still work normally.

FORT-1019056 has been added to our ‘To Do’ list. Someone’s been assigned this task.