On Player Event: Right Click, you can either use:
If Player: Is Looking at and put the location in the chest
or
If Variable =, put a Game Value: Event Block Location in the 1st slot and the location you want to check in the 2nd slot!
I recommend the 2nd one as the first one may bug if the...