Hey, back again. Here is what I got so far. But is there any way to use a function instead of having to use the 2 lines under //copy?
PHP Code:
//#CLIENTSIDE
function onCreated()
{
temp.obj = new TStaticVar();
temp.obj2 = new TStaticVar();
for( i=0; i<10; i++) {
temp.obj.add("");
with( temp.obj[i] ) {
this.var = "test:" SPC i;
this.test = "works:" SPC i;
}
}
//copy
temp.obj2.loadvarsfromarray( temp.obj[2].savevarstoarray(true) );
obj.test = temp.obj2;
//test
player.chat = obj.test.getdynamicvarnames();
}