The result are “2_1” or “2_2”… so I understand (I think) how to build up an array.
What I can’t find anywhere (nor my little knowledge javascript syntax is helping me) is if there’s any way of defining the array content without inserting its components individually. Like:
I don’t think that will work. That is an example of doing something that really would require the compiler to understand the new type, which it doesn’t. The way the compilers deal with these new types is by creating a opaque type for it and treating it like a cookie. It’s probably some int value underneath but the compiler doesn’t actually deal with it. It just passes those opaque cookies to the engine functions which do understand the data type. Sort of like the original object type (except that one is built in). But this mechanism is used for effects, events, locations and a few others as well as the new stuff beamdog has added.
It’s actually a pretty decent way to be able to expose new engine functionality to the compiler. Another place where bioware really did a good job of designing this whole thing.