NPC bugged if you set health when the NPC health is below 0

Summary

If you SetHealth on the fort character of a NPC on the fort characters damaged event to above 0 when the health goes below 0 the npc gets stuck in an in-between state of still being alive but actually was eliminated.

Please select what you are reporting on:

Unreal Editor for Fortnite

What Type of Bug are you experiencing?

Verse

Steps to Reproduce

Set health of the NPCs fort_character to above 0 when the npc’s health goes below 0 within a NPC_Behavior script

Expected Result

NPC will still be alive (which is what happens to a player).

Observed Result

NPC turns invisible but script still runs, when you respawn you can see the NPC but when NPC reaches <= 0 HP it will no longer take damage but not be eliminated.

Platform(s)

PC

Upload an image

Video

Additional Notes

I understand keeping the NPC alive might not be intended but it would be super useful for any state machine being used in boss fights so that any player that is too strong will not break the entire boss fight by letting all states complete and cleanup before the NPC is eliminated.

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

Hello,

Could you give details / paste screenshot of the NPC Character Definition asset that is causing the issue? (Character Type, Cosmetic component, etc)

Thanks!

Let me know if there is anything else I can provide to help!


Hi Ben! Could you share the project with us so we can investigate? You can DM me here if you’d prefer, or on Discord.

1 Like

Sent on discord, thank you!