Im trying to get a list of enemies but it never works.\

enemies = self.findEnemies()
if len(enemies) < 1:
game.log(“oh nono”)

The console always says “oh nono” but the length of the list is supposed to be 9

Howdy and welcome to the forum! When posting code, please be sure to format it properly. This article will help you learn how: [Essentials] How To Post/Format Your Code Correctly

‘self’ was replaced by ‘hero’ a few years ago. Same with ‘loop’, which is now ‘while’.