12 lines
284 B
Lua
Executable file
12 lines
284 B
Lua
Executable file
function EnterRegion(Zone, Spawn, RegionType)
|
|
-- RegionType 2 is 'lava' or 'death' regions, RegionType 1 is water
|
|
|
|
local invul = IsInvulnerable(Spawn)
|
|
if invul == true then
|
|
return 0
|
|
end
|
|
|
|
if RegionType == 2 then
|
|
KillSpawn(Spawn, null, 1)
|
|
end
|
|
end
|