I think dieBastard should workmpuppetier wrote:I guys, how can i kill a monster??
i had triedalso tried the methodsCode: Select all
function killWizard() wizard_1.monster:destroy(); end
kill() and dieBastard()
and setHeath(0) ...
but the wizard still looking at me
Lol ok to destroy an object you say:
As an example I created three tree cluster items in my dungeon through script when a boss starts then when the boss died I destroyed them:
Code: Select all
Entity:destory
Edit: you can also say
Code: Select all
entity.monster:setHealth(0)
Code: Select all
function hurt()
health = entity.monster:getHealth() - 1
entity.monster:setHealth(health)
end