Animation blueprint not working in packaged game.

I followed a tutorial. I need a sliding gate which opens once an actor overlaps a collision box and closes after few seconds.
When I lounch the game from the editor it works, the sliding doors not moving. When i package the game the animation doesn’t work. I searched for other cases like myne and i readed it could be a referencings issue. But I tryed to fix everything and all blueprint component is correctly referenced, but I still get the issue.