I’ve tried to select them with
enemies = self.FindEnemies()
enemies = self.findNearest(self.findEnemies())
enemies = self.findByType(“skeleton”)
enemies = self.findByType(“decaying skeleton”)
etc. and on, but i always get back nothing. can’t seem to target anything to cast spells on or command soldiers to attack.
I’ve been running this loop to make sure that something is actually happening in my code and no matter how i define enemies it just keeps looping and confirming that it is checking. It finds the Yeti Cub. Just not the skeletons.
loopCount = 1 loop: self.say("loop #" + loopCount) enemies = self.findEnemies() if len(enemies) > 0: for enemy in enemies: self.say("enemy is " + enemy) self.say("there were enemies, breaking") break loopCount += 1