Ty that did work but im getting 2 x ratling spawning instead of just 1 ratling lol. At least the error is gone but I don't know why its spawning 2 ratlings it should be only one. Its the same code as above plus the new code you gave me tyIsaac wrote: ↑Wed Sep 25, 2019 7:01 am I cannot easily test this... but you can.Is it possible that the md_npc_ratling2_2:destroy() function is called twice?Code: Select all
function killnpc01a() if md_npc_ratling2_2 then md_npc_ratling2_2:destroy() end end
It IS the case that a monsters removal after calling destroy() is not instantaneous. It remains an object for a minute but significant amount of time afterwards.
![Smile :)](./images/smilies/icon_e_smile.gif)