Posted 01 November 2017 - 05:21 PM
Hi,
If I have a table like so:
it would call the function (structure) and the rest would be put as arguments? Also this should work dynamically.
I currently have a system, but it will only call the first parameter for the function name and put the rest as arguments. In the function I would then have to take care of everything. If I could eliminate that, then it would be easier to make new functions.
Thanks.
If I have a table like so:
[1] => "this"
[2] => "command"
[3] => "structure"
[4] => "and"
[5] => "my"
[6] => "arguments"
it would call the function (structure) and the rest would be put as arguments? Also this should work dynamically.
["this"] = {
["command"] = {
["structure"] = function()
-- Get the args, blah blah
}
}
}
I currently have a system, but it will only call the first parameter for the function name and put the rest as arguments. In the function I would then have to take care of everything. If I could eliminate that, then it would be easier to make new functions.
Thanks.