On the client side I have this:
Code: Select all
remote.add_interface("Tree Cutter",
{
doJob = function(worker, amount)
return TreeCutter.doJob(worker, amount)
end
}
)
Code: Select all
return count, "Job done."
Code: Select all
local jobCount, report = remote.call(job.name, "doJob", worker, amount)
remote.call() is probably treating the return values so they can be sent between the separate interpreters, but is only treating the first value returned.