Hi Doriel,

since there are no real multidimensional arrays in c-script you can fake them by doing the following (described in the manual):
Quote:


Multidimensional arrays can be defined in C-Script by multiplying the index by the array width. Suppose you need an array in two dimensions, like a 10*20 grid of height values. It is defined this way:

var heightmap[200]; // 200 = 10*20
The array value at position (j,i) can then be accessed through:

heightmap[j*20 + i] = 10; // j = 0..9, i = 0..19





However in lite-c you can use multidimensional arrays as is usual in other languages.