What does this mean?


#1

e.extra.node.loc is undefined

What in the world…


#2

What level is this on?


#3

Also please post your code with formatting according to the FAQ.


#4

Blind Distance

def nearestEnemyDistance():
    enemy = hero.findNearestEnemy()
    result = 0
    if enemy:
        result = hero.distanceTo(enemy)
    return result
while True:
    
    enemyDistance = nearestEnemyDistance()
    enemy = hero.findNearestEnemy()
    if enemy:
        if hero.distanceTo(enemy) > 20.:
            hero.say(distancetoenemy)= hero.findNearestEnemy()

somehow the first part is not formatting properly when i paste it here.


#5

I know that…
Please, if you do not know exactly what it means, do not answer. Honestly.


#6

I believe: hero.say(distancetoenemy)= hero.findNearestEnemy() is incorrect. Please double check your code