Hi all.
I would write a material index to an array.
I have :
[IButton,Write material index,"",
[VarSet, id,[IGetID, Material:Flat Color] ]
[VarDef, material(100)]
[Loop,100,
[VarSet,material(i),[IGetTitle, id]]
[Note, material(i),,2] // debug
[VarAdd, id, 1]
,i
]
]
which works up to a point
then fails with :
ZScript Note : Inerface item could not be found.
10258
in…
[IGetTitle,id]
clearly i am not using the correct way of obtaining the material name from it’s index.
is there a more robust way of doing this ?