I want to fill the player characters with some fixed data that will be read only for the client at the moment I grant them to the user, but if I try to do it using ReadOnlyData theres a limit of 5 values, so Im thinking on setting that info as an object inside the character. However I cant find the way to access the object.SetObjects function from cloudscript. Any idea, suggestions or work arounds?
Answer by Chrystian Sil · Jun 25, 2019 at 06:40 PM
Ok, just find out that the container of those functions is entity. =P
var customDataRequest = { Objects: [ { ObjectName: "GameData", DataObject: customData } ], Entity: { Id: grantResult.CharacterId, Type: "character", TypeString: "character" } } var updateResult = entity.SetObjects(customDataRequest);
Get Character ID from the Server 1 Answer
Character Creation guide. 1 Answer
Updating Character Statistics Cloudscript 2 Answers
Updating Character Inventory from Server 1 Answer
Updating Character Data 1 Answer