death.lua 285 B

12345678910111213
  1. function EnterRegion(Zone, Spawn, RegionType)
  2. -- RegionType 2 is 'lava' or 'death' regions, RegionType 1 is water
  3. local invul = IsInvulnerable(Spawn)
  4. if invul == true then
  5. return 0
  6. end
  7. if RegionType == 2 then
  8. KillSpawn(Spawn, null, 1)
  9. end
  10. end