#Inventory V2 modification in Cloud Script

4 messages · Page 1 of 1 (latest)

low portal
#

I've been working on an automation for my end of season reset which would require to clear the player's Inventory (V2). I've been trying to do this using Cloud Script but I can't seem to find any examples of how to do this. Is that even possible?

hardy urchin
#

You can use EconomyV2 from CloudScript. Unfortunately, the documentation doesn't state that anywhere, but there is an exposed economy object.

This is an example taken from our own CloudScript code:

economy.UpdateInventoryItems({ Entity: this.m_entityKey, Item: { Id: <item_id> Amount: <item_amount> } });

low portal
#

Thank you so much!

low portal
#

Is there nowhere to see the exposed methods of economy?