Error for enemy = hero:findNearestEnemy(), The kithard dungeons, The gauntlet A


#1

Hello, When I try to use the command enemy = hero:findNearestEnemy() in The Gauntlet A, Kithard Dungeons it says "There is no enemy. Use enemy = hero:findNearestEnemy() first. But I have am I doing something wrong or is the programming wrong since I am using lua.


#2

Hello

I’m seeing a whitespace on the 3rd line. Try to remove it.

Hope this helps!


#3

Where is the white space?


#4

Line 3 should be:

enemy  = hero:findNearestEnemy()

You have:

e nemy = hero:findNearestEnemy()

A space is a character. A space where one should not be is considered unwanted whitespace.


#5

Thank you for helping me