Hello,
If we were delete an item from a catalog that exists in Player/Character inventory, would the missing item be gracefully handled as if the item never existed?
Hello,
If we were delete an item from a catalog that exists in Player/Character inventory, would the missing item be gracefully handled as if the item never existed?
It depends upon the item. For most items, that would be fine, as there's no need to look anything up. Containers, however, need to be able to look up their catalog info to figure out what they should be delivering to the user when they are opened.
Currently when I delete an Item (not a Container) from the Catalog, all the item instances on players inventories just stay there.
Is this the expected behavior?
If I want to just completely remove the item from the game (and all inventories), how should I go about it? IMO this functionality specially something desirable during development...
Thanks!
Yes, that is the expected behavior. Changes to the catalog do not affect pre-existing item instances that players have.
If you need to remove an item from all players, I'd recommend using an "OnLogin" Cloud Script handler as part of your logic. That way, you can check for things that need to be cleaned up on the player account when the client logs in. You'll want to make sure to limit that logic, so that you don't exceed the Cloud Script API/time limits though, so progressive cleanup over multiple game session is sometimes the right way to go.
3 People are following this question.