Skip to content

despawn() will not work if the NPC is in the middle of respawning #1291

Description

@PrettyPrincessPotato

Describe the bug
When calling npc.despawn() while an NPC is already dead, the NPC will not be removed as expected.

To Reproduce
Create a script with this:

npcDeath {
            despawn(10)
        }

Kill any and all NPCs you see
Watch as they respawn.

Expected behavior
This should allow NPCs to drop their loot, but never respawn.

Desktop (please complete the following information):

  • OS: CachyOS
  • Version 2.10.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions