1 decade ago by mahgo
Hi, how do I set values of an array variable property of an Entity in Weltmeister?
This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact
foo.bar
with a value of "hello" would set entity.foo.bar
to "hello". 039;t use index 0 because WM will coerce it to null, but if you use #foo.1
as the key you will set foo[1]
. Et voilĂ !039;t care about order, though, an object is just fine for storing a collection of values. You can still iterate over the object's keys to get what you want using #for (var key in obj) {...
.