Lua:unregisterAutoAssemblerTemplate
Jump to navigation
Jump to search
function unregisterAutoAssemblerTemplate(ID)
Unregisters a previously registered Auto Assembler template using its ID. Use this to remove a template that was added with registerAutoAssemblerTemplate.
Function Parameters[edit]
| Parameter | Type | Description |
|---|---|---|
| ID | Integer | The ID returned by registerAutoAssemblerTemplate when the template was registered. |
Examples[edit]
-- Register and then unregister a template
local templateID = registerAutoAssemblerTemplate("Temporary Template", function(script, sender)
script.insert(0, "-- Temporary template")
end)
-- Later, remove the template
unregisterAutoAssemblerTemplate(templateID)