How to make chests drop items only once

I have my player whenever it’s colliding with a chest it drops an item when I press E, but I only want the chest to drop an item once, currently the chest will drop more items if I keep pressing E, how do I make the chest only drop an item once? I want to do this for every instance of the chest.

Add

Condition
Player is in collision with Chest
E key is pressed
Chest boolean variable Opened = false
Trigger once

Action
Change value of Chest boolean variable Opened set to true
Drop item

No need for the trigger once. One of the values that make this condition changes in the action, so it will never trigger this event for the chest again.

Also, if there are open and closed animations for chest then, instead of using a boolean variable, just check the animation name is “closed” and change the animation to “open” in the action.