Fixed an issue that was leading to unreliable respawn mechanics on multi-behavior NPCs

This commit is contained in:
Ceikry
2023-05-16 12:42:22 +00:00
committed by Ryan
parent c04ee0f821
commit f7b707c3da
2 changed files with 13 additions and 4 deletions
@@ -13,6 +13,7 @@ class ImplingSpawnerBehavior : NPCBehavior (*ImplingSpawner.getIds()) {
val isPuro = isPuroSpawner(self)
val delay = if (isPuro) 120 else 180
setAttribute(self, "transformTime", getWorldTicks() + secondsToTicks(delay))
self.setRespawnTicks(3)
self.isRespawn = isPuro
self.walkRadius = if (isPuro) 20 else 100
self.isWalks = true