You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since there is no actual printGlobal in VExtensions Starfall but we do have printLocal, you could easily implement it yourself. Here's some boilerplate code
--@name PrintGlobal with PrintLocal--@author Vurv--@sharedifSERVERthenfunctionprintGlobal(...)
localargs= {...}
net.start("printglobal")
net.writeStream(bit.tableToString(args))
net.send()
endhook.add("clientinitialized","",function()
printGlobal(Color(255,0,0), 69, 420)
end)
else-- bit.tableToString does not keep whether a table is a color, etc. We'll do what printGlobal does and interpret if something is a valid color.localfunctionmeta_color(v)
iftype(v) ~="table" thenreturnvendifv.rthen-- cheapreturnColor(v.r, v.g, v.b)
endreturnvendnet.receive("printglobal",function()
net.readStream(function(a)
localt=bit.stringToTable(a)
fork,vinpairs(t) dot[k] =meta_color(v)
endprintLocal( unpack( t ) )
end)
end)
end
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Since there is no actual printGlobal in VExtensions Starfall but we do have printLocal, you could easily implement it yourself. Here's some boilerplate code
Beta Was this translation helpful? Give feedback.
All reactions