#can you save arrays with dynamic properties?

1 messages · Page 1 of 1 (latest)

latent junco
#

Yeah, absolutely. You can store anything that can be converted into a string in them using JSON.stringify and JSON.parse

const array = ["a","b","c"]
world.setDynamicProperty("test", JSON.stringify(array))

const arr = JSON.parse(world.getDynamicProperty("test"))
nova bone
#

Vector3, Boolean, Number, String.

honest shuttle