About the AnimEvent solution

I found when in the AnimEvent, i set a variable, it’s not changed when i want to change it…

I solve it by GameplayGlobals.in AnimEvent ,it will changed.i make it flag to trigger states.
Tryibion tell me a good idea, let me override the OnEvent function to get a reference to the AnimatedModel actor,then change its script var.

I start to learn flax,although there maybe many question,many peopal help ,thanks a lot.

Is a bug? or my code is wrong? - Scripting - Flax Forum (flaxengine.com)