Use it
basically it works when you have a moveable player sprite. there the ai has modes depending on the position of the player. ex: if the player is ___ amount away from the player, it'll do this action. look at the code for more info.