Hi.
I want to unlock some of player inventory after a while (for example 5h.).
This will happen after user purchased that item from shop.
Can you give me a solution for this pattern?
Hi.
I want to unlock some of player inventory after a while (for example 5h.).
This will happen after user purchased that item from shop.
Can you give me a solution for this pattern?
You can do the math yourself with the PurchaseDate field. Just take the current time and subtract the purchase date and see if it has been five hours yet. Note that this probably won't work with stackable items.
In the game manager, make the items be consumable, set the "By time" to 5, and the drop down below to "Hours". That way, when the player buys the item, it will be in his inventory for 5 hours, then be removed.
1 Person is following this question.