question

andrearossini avatar image
andrearossini asked

Remove/Destroy durable item from inventory

Hi,

is there a client API call to remove an item (durable, so Consume doesn't work for me) from player's inventory? Or I have to create my custom function in cloud script to do that?

Thank you.

Best regards,

Andrea.

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

·
1807605288 avatar image
1807605288 answered

You're probably looking for server.RevokeInventoryItem

This method is available from Cloud Script or from a game server.

Under the hood, the item still exists, but the client will not be able to see or use it. For example, you will still see the item on that player, as revoked, in Game Manager.

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.