How to i make an enemy have a jump attack and while staying in the players sensor radius

i need to find how to make an entity that stays in the players radius and does a jump attacks