How do I use the punch Function?
when i use hero.punch(hero.findNearestEnemy());
my Hero doesnt do anything.
What can I do?
thanks.
How do I use the punch Function?
when i use hero.punch(hero.findNearestEnemy());
my Hero doesnt do anything.
What can I do?
thanks.
Try to do:
if hero.isReady("punch"):
hero.punch(hero.findNearestEnemy())
Or
enemy = hero.findNearestEnemy()
if enemy:
if hero.isReady("punch"):
hero.punch(enemy)
@PeterPalov thank you.