Author Topic: Transfer a scriptObject?  (Read 509 times)

Ok, I want to send a scriptObject from the server to the client. Will all of the variables attached to it transfer with it? Or do I have to send each variable separately?

Do I have to do this:
clientCmdGetStuff(%var1,%var2,%var3...)

Or can I do this and have all the variables transferred with it:
clientCmdGetStuff(%scriptobject)

You can't transfer an object like that. It would just send the id of that object (which would mean nothing to the client). You'll need to send all the individual properties and then have the client re-build the script object.