Create the Bool variable in your BP_Player. When you pick up the coin, you pass it to True and you check at the end in the BP_Barricade.
BP Coin
BP Barricade