Galla.adam
started a topic on Mon, 01 June 2015 at 5:52 AM
I wanted to use UpdateUserInventoryItemCustomData in cloudscript. I wanted to set the item's Position attribute. Here is my code:
server.UpdateUserInventoryItemCustomData({
PlayFabId: currentPlayerId,
ItemInstanceId: inventory[i].ItemInstanceId,
Data: { Position: position }
});
This is part of a for loop, and the inventory[i] represent an item in the players inventory. The position variable is a serialized unity vector3 so a simple string.
I got this error:
TypeError: undefined is not a function
at handlers.startCraft (main.js:80:15) -> server.UpdateUserInventoryItemCustomData({
at __playfab_internal.invokeHandler (Script Document:4:153)