I have a problem that I can't get any further. When the player buys a character, this button should be deactivated and remain so. can someone help me how i do that
Attachments: Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.
Not sure which engine/language you are using, however, the basic idea should be similar:
In the success callback of the purchase, deactivate the button by doing this: button.interactable = false; (assuming you’re using Unity)
C Sharp with unity
You may iterate all those 4 buttons and deactivate the ones whose associated character is in the inventory.
how do i find out which button belongs to which character. Maybe you have a code example
that's a great tip thank you :)
@Michael Brilz What engine/language are you using? If you're using Unity, it's as simple as
YourPurchaseButton.interactable = false;
I Check with getuserinventory if the character is in the inventory, but How i can deactivated the Button of this characters.
I forgot to give more information sry. I have 4 buttons on which players can buy characters with purchase item. How can I Check After the login if these characters are in the inventory, and deactivated the button of this character
3 People are following this question.
Rewarding players with consumable items after each X games (or other metrics)
current level for a player - how to update this
Storing custom game data specific to a player (card game example),Inventory management data structure in a card like game
Setting player data through ue4 blueprints
I need to perform a bulk item grant to a subset of players based on a list of SteamIDs. How can I create a segment based on a list of SteamIDs? One that is say, 500 or 1,000 users long?