Line trace not recognize actor

Im trying to learn AI so i decided to make an AI character that when his hunger bar gets to 50 percent he gets hungry and starts looking for an apple i placed in the game. The line trace hits the apple when in vision of it but it wont recognize that the line trace is equal to the apple. If i change apple to player character and walk in front of the line trace the character runs to the apple. Im not sure what im doing wrong here any help would be appreciated. Thanks