lua args code example
Example 1: glua varargs
function functionname(...) -- the 3 periods works the same as any other arg, use ... in the function
Example 2: lua parameters function
--// LUA basic function parameter
function BasicParameter(text)
print(text)
end
BasicParameter("My Text Here")
Example 3: lua command line arguments
-- Display the command line parameters
print(arg[0]) -- Name of the script
print(arg[1]) -- First parameter
print(arg[2]) -- Second parameter