Difference between revisions of "Lua:unregisterAutoAssemblerTemplate"
Jump to navigation
Jump to search
(Created page with "Category:Lua '''function''' unregisterAutoAssemblerTemplate(''ID'') Unregisters a previously registered Auto Assembler template using its ID. Use this to remove a templ...") |
(No difference)
|
Latest revision as of 00:23, 11 July 2025
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)