Yeah, here's the new code.
[attachment=0:2qofx7iw][/attachment:2qofx7iw]
The 0.10 Wait commands are actually just so the enemy pauses for a tenth of a second before beginning to follow once the player's bbox is no longer overlapping the enemy's. Disabling them has no effect on interrupting the walking animation.
(oops, just noticed that the second Else isn't part of the second X check. Fixing it did not have any effect though).