Thread: Passing Objects
View Single Post
  #5  
Old 06-04-2006, 11:08 PM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
Quote:
Originally Posted by ApothiX
There is no way to pass them via triggeractions, but I did come up with a little way to avoid that.

To send it:
PHP Code:
temp.object = new TStaticVar();
temp.object.test "Testing 123";

temp.arrayholder NULL
for(temp.vnametemp.object.getdynamicvarnames()) {
  
temp.arrayholder.add(temp.vname "=" temp.object.(@temp.vname));
}

triggerserver("gui"this.name"sendobject"temp.arrayholder); 
To receive it:
PHP Code:
function onActionServerside() {
  if(
params[0] == "sendobject") {
    
temp.object.loadvarsfromarray(params[1]);
    echo(
temp.object.test);
  }

But that wouldn't accept multilevel vars though would it?
__________________
Who has time for life these days?
Reply With Quote