Trigger code on specific frame of animation.

I haven’t started programing this yet but I was wondering if there was any information on having a piece of code trigger on a specific frame of an animation?

Like having a crowbar object having the CheckForEnemies procedure get called when it is at the frame of animation furthest from the player character where it would hit the enemy.

I’m not sure if there is a name for this, googling the concept doesn’t get me anywhere.

Yep this is very doable with Mecanim, not sure about legacy animations. Look at the tut on Mecanim and performing actions/doing gamelogic at specific frames