Custom NPCs disappear after the player is eliminated

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

Mostlikely this:

Plz upvote, maybe we will get some traction…

1 Like

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

1 Like

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

1 Like

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

3 Likes

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…

2 Likes

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

1 Like