mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
15 lines
438 B
Lua
15 lines
438 B
Lua
![]() |
dofile_once("data/scripts/lib/utilities.lua")
|
||
|
|
||
|
local entity_id = GetUpdatedEntityID()
|
||
|
local x, y = EntityGetTransform( entity_id )
|
||
|
|
||
|
local targets = EntityGetWithTag( "mortal" )
|
||
|
for i,v in ipairs( targets ) do
|
||
|
if ( EntityHasTag( v, "ew_peer" ) == false ) then
|
||
|
local test = EntityGetFirstComponent( v, "DamageModelComponent" )
|
||
|
|
||
|
if ( test ~= nil ) then
|
||
|
EntityKill( v )
|
||
|
end
|
||
|
end
|
||
|
end
|