Ai

How do I make a character (instance ‘enemy’) attack when the ‘char’ gets close, and how do I make him do a different attack when he is far?

Each attack is on a different frame in the enemy MC.

close attack is “kick”
far attack is “throw”