Created
April 4, 2017 16:28
-
-
Save asarium/744a9be893f918a4d99e5deed9b26cbd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local params = { | |
help = "This is a dynamic parameter test SEXP", | |
min_args = 1, | |
max_args = math.huge, | |
return_type = "void", | |
params = { | |
["..."] = { | |
description = "Some arguments", | |
type = "boolean" | |
}, | |
{ | |
description = "Test", | |
type = "number" | |
}, | |
{ | |
description = "Test2", | |
type = "ship" | |
}; | |
}, | |
} | |
mn.addSEXP("dynamic-sexp", params, function(arg1, arg2, ...) | |
ba.error(tostring(arg1) .. " " .. arg2) | |
end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment