Someone help me set up buy system on widget button click



My coins(aka bottles) are picked up and saved but when I try to buy something via widget it doesnt work. Can someone show me how to set it up using this method. You can ignore the widget pictures I tried using a video but they used the thirdpersoncharacter while I used the actor of the bottles.

Hello Xiontheman1 and thank you for posting.

I am just going to tackle the widget part as it seems this is where you are currently having a little trouble. The work you performed in your widget look pretty good so far. For the purchasing, I also used the widget itself. I take the player reference and check if it can afford the store item. If yes, we move onto deducting the amount from the player’s money bag.

When you’re creating your store, you may want to bind values such as item name, image and value. For illustrative purposes, I created a variable named StoreItemCost.

I hope this information assists you.