@X95 Did you try out the code I posted in question #2?
while True:
enemy = hero.findNearestEnemy()
if enemy:
vector=Vector.add(enemy.pos,hero.pos)
hero.say( "Enemy x=" + enemy.pos.x + " Enemy y=" + enemy.pos.y )
hero.say( "Hero x=" + hero.pos.x + " Hero y=" + hero.pos.y )
hero.say( "vector x=" + vector.x + " Hero y=" + vector.y )