State machine transition firing event?

I need to edit a specific variable when the state machine enters a specific state, how can I do it? Is it possible to call a function from within anim graph?

have you tried BP_interface?

Ok, think I found the solution. In the properties of the transition node there is an option to fire an event at the beginning or at the end of the transition (Start/End transition event). I should have looked better!