btech.design_exists
Tests whether a unit template exists.
Function
Synopsis
btech.design_exists( reference )
Arguments
string reference- The unit template reference.
Returns
boolean result- Whether the condition is true.
Examples
local btech = require("btech")
if btech.design_exists("AS7-D") then
mux.notify(ctx.enactor, "The design is available.")
end
Notes
This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.