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_characterdiffers (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