What is the world "name" referring to when using the GetWorld function?
I'm trying to use that function but I always get nil world.
The world name above where the IP address goes is cp_info. The file name for the world is cp_info.mcl. But whenever I pass "cp_info" to GetWorld it comes back nil.
This is what I'm using...
I'm trying to use that function but I always get nil world.
The world name above where the IP address goes is cp_info. The file name for the world is cp_info.mcl. But whenever I pass "cp_info" to GetWorld it comes back nil.
This is what I'm using...
SendToWorld ("cp_info", Note("Hey"))
function SendToWorld (name, message)
local otherworld
otherworld = GetWorld (name)
if otherworld == nil then
Note ("World " .. name .. " is not open")
return
end
Send (otherworld, message)
-- alternative syntax: otherworld:Send (message)
end -- of SendToWorld