Play animation only at trigger box?

Hi. How to set a blueprint so that ability to play an animation(character hands) with a key would be only available at certain places?

Never done this, but my guess would be:

Have a variable in your characterBP called canUseKey or something like that.
When within trigger box using overlap event, query box for its type which I suppose you can specify in the box object (door, window, coffemachine, whatever…, or simply keyUsable or so) Or simply search its name for “key” or “door” or whatever.
And if you got a match, turn the canUseKey variable in characterBP to 1. Then you use that variable as a condition to trigger your animation.

I think its also possible to do that all directly in the door blueprint tho. So when it registers an actor overlapping, it casts to it setting the actor canUseKey variable.