I cant find anything at all that shows how to interact with entities through CloudScript.
At the moment, Im just looking to set up an entity.
I have a function that is called when a new account is created.
Previously, in this function I would use UpdateUserData, give it the currentPlayerId and the Data, and I would have a new user set up.
Im trying to change this to use the entity.SetObjects function but have no idea how to give it the information it wants.
Best I can gather, it needs an Entity and the Objects.
Not sure how to give it an entity or what info that would need.
For the objects, I assume similair to Data in the UpdateUserData, just needs a JSON/Array kind thing.
This is what ive got so far.
The entity bit is definitly wrong, thats the name of the entity, i guess it wants the actual entity.
entity.SetObjects( Entity: "PlayerData", Objects: [{ "_charStats": { "P1" { "Lv": 0, "Str": 1, "Spd" : 1 } } }] );