btech.parts
Lists canonical long part names in one category.
Function
Synopsis
btech.parts( category )
Arguments
string category"ammo","weapon","bomb","special", or"cargo". The aliases"weapons","weap","bombs","specials","part","parts", and"carg"are also accepted.
Returns
table values- A flat array of converted legacy result tokens.
Examples
local btech = require("btech")
for _, name in ipairs(btech.parts("weapon")) do
mux.notify(ctx.enactor, name)
end
Notes
This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.