Jump to content
  • 0

Despawn NPCs on Global Event.


Eridonis

Question

Player 1 Enters a room, Dies with a mob in it.
Player 2 Enters a room, but mob is still active in the room, even though "Despawn NPCs" is placed on a conditional.

Player 1's Despawn NPC doesn't clear Player 2, mobs, but it clears it's own summon. 
Player 2's Despawn NPC doesn't clear Player 1, mobs, but it clears it's own summon. 

Is there any way to fix this?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
12 hours ago, Eridonis said:

Player 1 Enters a room, Dies with a mob in it.
Player 2 Enters a room, but mob is still active in the room, even though "Despawn NPCs" is placed on a conditional.

Player 1's Despawn NPC doesn't clear Player 2, mobs, but it clears it's own summon. 
Player 2's Despawn NPC doesn't clear Player 1, mobs, but it clears it's own summon. 

Is there any way to fix this?

If you are talking about a place that will enter one player at a time, before you start to spawn the monsters, you despawn first.

 

The map is empty, player 1 enters, despawn and then spawn again.  Player 1 dies and monster stays there.  Player 2 enters, despawn first and then spawn again and so on

Link to comment
Share on other sites

  • 0
3 hours ago, Weylon Santana said:

If you are talking about a place that will enter one player at a time, before you start to spawn the monsters, you despawn first.

 

The map is empty, player 1 enters, despawn and then spawn again.  Player 1 dies and monster stays there.  Player 2 enters, despawn first and then spawn again and so on

Yes but, the 2nd player despawn doesn't despawn the 1st players mobs. Despawn doesn't despawn the other players event even if set to global?

Link to comment
Share on other sites

  • 0
55 minutes ago, Eridonis said:

Yes but, the 2nd player despawn doesn't despawn the 1st players mobs. Despawn doesn't despawn the other players event even if set to global?

In this case, I think you will have to use an event on the map and define the event as global. So the event always despawn before spawning. if it doesn't work, then only with source.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...