Transition between states help required

Hi I am trying to get anAI enemy to transition between Idle/WalkRun state to a punching state upon being within a certain range of the player. I do not know how to create the transititon rule for this to occur. I am very new to unreal so any help would be very much appreciated.
Thanks Guys.