question

brendan avatar image
brendan asked

Item expiration and events

When an inventory item (Consumable by time) expires by itself, triggers the event com.playfab.player_consumed_item?

In-Game EconomyPlayer InventoryPlayStream
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Currently, no. But it's important to realize that this isn't necessarily occurring at the actual expiration time. Just like with regenerating currencies, item expiration is checked when the inventory is "touched" (it's re-evaluated when queried or added to). So an item which is granted to a player at 00:00 UTC, which expires in an hour, has an expiration time of 01:00 UTC. But it's not literally removed from the player's inventory until there's a need to check if the item is still valid, such as querying the inventory.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.