mirror of
https://github.com/Dadido3/noita-mapcap.git
synced 2024-11-18 17:17:31 +00:00
Add example code for killing/removing creatures
This commit is contained in:
parent
7a85f646cb
commit
9494588e7b
@ -432,6 +432,11 @@ local function captureModifyEntities(file, modify, x, y, radius)
|
||||
|
||||
-- Prevent it from being modified again.
|
||||
rootEntity:AddTag("MapModified")
|
||||
|
||||
-- Just a test on how to remove/kill creatures and enemies.
|
||||
--if (rootEntity:HasTag("enemy") or rootEntity:HasTag("helpless_animal")) and not rootEntity:HasTag("boss") then
|
||||
-- rootEntity:Kill()
|
||||
--end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user