What I am trying to do is. Skip the need for
NPC Code:
this.array = {1,2,3};
And just do:
PHP Code:
this.array[#].value = "blah";
But to do it in a for loop that size changes. I may not know if I need {1, 2} or {1,2,3}.
Here is what I mean, kinda:
PHP Code:
//#CLIENTSIDE
function onCreated()
{
for( i=0; i<10; i++) {
temp.array[i] = new TStaticVar();
with( temp.array[i] ) {
this.var = "test:" SPC i;
}
}
player.chat = temp.array[1].var;
}
Which does not work obviously.