enemy = hero.findNearestEnemy()
while True:
if hero.isReady("slam"):
hero.slam(enemy)
not working.
Hero does nothing and get bullied by a skeleton
enemy = hero.findNearestEnemy()
while True:
if hero.isReady("slam"):
hero.slam(enemy)
not working.
Hero does nothing and get bullied by a skeleton
Is this the whole code? Please post it all if not
that the whole code.
Maybe you would want to add an else statement
for attacking
this level not giving me sword
Can you please post your gear, and a screenshot of the level?
I can’t access it, I’m not a subscriber. And I meant a screenshot of the level inside
@Haris, You have to find the nearest enemy inside of the while true loop, or you will never find an enemy to slam.
do:
while True:
enemy=hero.findNearestEnemy()
if enemy:
if hero.isReady("slam"):
hero.slam(enemy)
and that should do it because it finds ALL of the enemies/skeletons and slams them with illia’s abbility
You can’t give the solution just tell him the things he needs to change I think : O
Maybe you should edit it so you don’t get flagged lol just tryna help :3
ty im complete 20characters
This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.