Skip to content

Instantly share code, notes, and snippets.

@asarium
Created April 4, 2017 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asarium/744a9be893f918a4d99e5deed9b26cbd to your computer and use it in GitHub Desktop.
Save asarium/744a9be893f918a4d99e5deed9b26cbd to your computer and use it in GitHub Desktop.
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