diff --git a/script.lua b/script.lua index e47cd43..858eab2 100644 --- a/script.lua +++ b/script.lua @@ -34,6 +34,18 @@ function UV(uv) uv[2]/TEXTURE_HEIGHT }) end + + +function splitstring (inputstr, sep) + if sep == nil then + sep = "%s" + end + local t={} + for str in string.gmatch(inputstr, "([^"..sep.."]+)") do + table.insert(t, str) + end + return t +end -- }}}