Animation events outside animator

I’m trying to make an animation event call a function in a script, so far the basics are there and its going smoothly. The trouble I’m having now is the script is on an empty game object, and the player model + animator are a child of that gameobject. Animation events seem to only work if the script is on the player model + animator, but won’t work if the script is on the parent gameobject.

So do I have to keep the script I want to access in the same object as the animator, or is it possible to put the script in a parent object?

To clarify: when the script is on the parent object I get a “animationevent does not have a reciever” error. Moving the script to the same object as the animator removes the error and runs the function.

Yes, that’s just how it works.