mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 15:13:16 +00:00
re enable imortal component
This commit is contained in:
parent
6067bbeddb
commit
0b35632eae
1 changed files with 1 additions and 1 deletions
|
@ -477,7 +477,7 @@ function rpc.handle_enemy_data(enemy_data)
|
||||||
EntityRemoveComponent(enemy_id, com)
|
EntityRemoveComponent(enemy_id, com)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
--EntityAddComponent2(enemy_id, "LuaComponent", {_tags="ew_immortal", script_damage_about_to_be_received = "mods/quant.ew/files/resource/cbs/immortal.lua"})
|
EntityAddComponent2(enemy_id, "LuaComponent", {_tags="ew_immortal", script_damage_about_to_be_received = "mods/quant.ew/files/resource/cbs/immortal.lua"})
|
||||||
local damage_component = EntityGetFirstComponentIncludingDisabled(enemy_id, "DamageModelComponent")
|
local damage_component = EntityGetFirstComponentIncludingDisabled(enemy_id, "DamageModelComponent")
|
||||||
if damage_component and damage_component ~= 0 then
|
if damage_component and damage_component ~= 0 then
|
||||||
ComponentSetValue2(damage_component, "wait_for_kill_flag_on_death", true)
|
ComponentSetValue2(damage_component, "wait_for_kill_flag_on_death", true)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue