Can you not add globals apart from the mod-named table? If other modders want to use method syntax to use the invisible function, they can do local invisible = invisibility.invisible at the top of their source file. But you don't even use method syntax for your own invocations, so I don't see the point of doing this, except maybe the save the one extra line of
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
local invisible = function(player, toggle)
...
end
invisibility.invisible = invisible
Every time a mod API is left undocumented, a koala dies.