Thread: Mudlib
View Single Post
  #10  
Old 07-12-2008, 02:43 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
PHP Code:
temp.data = temp.data.savevarstoarray(false); // Maybe true? Cant remember, think its supposed to be false...
triggerClient("gui", name, "foo", temp.data); // Sends the converted TStaticVar() as an array to client

//#CLIENTSIDE
function onActionClientSide()
{
  if (
params[0] == "foo") this.data.loadVarsFromArray(params[1]); // Back to a TStaticVar!
} 

Maybe that helps you solve the object transfering?
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote