# Custom NPCs disappear after the player is eliminated

**URL:** <https://forums.unrealengine.com/t/custom-npcs-disappear-after-the-player-is-eliminated/2167015>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fortnite\
**Created:** [December 3, 2024, 12:31pm UTC](https://forums.unrealengine.com/t/custom-npcs-disappear-after-the-player-is-eliminated/2167015 "2024-12-03T12:31:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![2GHSamburskoy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@2GHSamburskoy](https://forums.unrealengine.com/u/2GHSamburskoy)\
**Post date:** [December 3, 2024, 12:31pm UTC](https://forums.unrealengine.com/t/custom-npcs-disappear-after-the-player-is-eliminated/2167015/1 "2024-12-03T12:31:35Z")

</div>

### Summary

After the player dies from Custom NPCs and is revived, they just fall under the floor and disappear. Their logic is no longer active. At the same time, nothing is written in the code.

### Please select what you are reporting on:

Creative

### What Type of Bug are you experiencing?

Assets

### Steps to Reproduce

1. Create a custom NPC
2. Spawn him
3. Have him eliminate the only player
4. They disappear

### Expected Result

Must continue to execute the logic

### Observed Result

disappear

### Platform(s)

windows

### Video

[https://streamable.com/mh35di](https://streamable.com/mh35di)

---

<div class="post-metadata">

**Author:** ![VerySpicyGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VerySpicyGames](https://forums.unrealengine.com/u/VerySpicyGames)\
**Post date:** [December 3, 2024, 4:47pm UTC](https://forums.unrealengine.com/t/custom-npcs-disappear-after-the-player-is-eliminated/2167015/2 "2024-12-03T16:47:58Z")

</div>

Mostlikely this:

> [@NPC Spawner - Collision Issues after 33.00](https://forums.unrealengine.com/t/npc-spawner-collision-issues-after-33-00/2161134/10):
>
> Here is an example of the pets going through the ground: Also there is more weird stuff… before, our NPC’s wouldn’t collide with the coins (Clickers on each area), but now: [image] I also notice that their movement is weird, probably due to the collision identifications that changed

Plz upvote, maybe we will get some traction…

---

<div class="post-metadata">

**Author:** ![Croppa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Croppa](https://forums.unrealengine.com/u/Croppa)\
**Post date:** [December 4, 2024, 10:47am UTC](https://forums.unrealengine.com/t/custom-npcs-disappear-after-the-player-is-eliminated/2167015/3 "2024-12-04T10:47:39Z")

</div>

I think it has something to do with distance to closest player. After I walk away from NPC it also disappears. It would made sense to not cull AI that’s to far from player, but current despawn distance/time is set definitely to low. UP

---

<div class="post-metadata">

**Author:** ![AtAshTag](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/atashtag/32/997253_2.png) [@AtAshTag](https://forums.unrealengine.com/u/AtAshTag)\
**Post date:** [December 4, 2024, 10:53am UTC](https://forums.unrealengine.com/t/custom-npcs-disappear-after-the-player-is-eliminated/2167015/4 "2024-12-04T10:53:20Z")

</div>

could you put a delay on the distance check to account for the spawn time ? you could set logic for when they elim the player and reset when spawned so would know and then have a delay. Also a cull is probs good for performance tbh or you could have them running all over taking resources and no player is near them

---

<div class="post-metadata">

**Author:** ![Flak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flak/32/769441_2.png) [@Flak](https://forums.unrealengine.com/u/Flak)\
**Post date:** [December 4, 2024, 12:43pm UTC](https://forums.unrealengine.com/t/custom-npcs-disappear-after-the-player-is-eliminated/2167015/6 "2024-12-04T12:43:46Z")

</div>

We are checking into this. The above ticket is a duplicate of FORT-830142

---

<div class="post-metadata">

**Author:** ![Croppa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Croppa](https://forums.unrealengine.com/u/Croppa)\
**Post date:** [December 4, 2024, 1:12pm UTC](https://forums.unrealengine.com/t/custom-npcs-disappear-after-the-player-is-eliminated/2167015/7 "2024-12-04T13:12:40Z")

</div>

If you spawn NPC and walk away from it ~10000 units _**FortChar.IsActive[]**_ returns _ **false** _. I guess NPC character falling through a floor is just an after effect of that Agent being culled. That will also happen if closest player dies and there’s no other player in the 10k radius.  
That definitely must have broke a lot of NPC dependant islands…

---

<div class="post-metadata">

**Author:** ![Bug-Reporter](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bug-reporter/32/1223650_2.png) [@Bug-Reporter](https://forums.unrealengine.com/u/Bug-Reporter)\
**Post date:** [December 18, 2024, 8:29pm UTC](https://forums.unrealengine.com/t/custom-npcs-disappear-after-the-player-is-eliminated/2167015/9 "2024-12-18T20:29:16Z")

</div>

FORT-831549 has been ‘Closed’ as a duplicate of an existing known issue.
