Jump to content

RemoveDeployedTemplate

From CMM Wiki
Revision as of 14:16, 10 February 2026 by Ozdeadmeat (talk | contribs) (RemoveDeployedTemplate – created via PowerShell script (2026-02-11T01:16:45Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: RemoveDeployedTemplate
Function Description: Removes a deployed template, deleting all objects associated with the template over a specified duration, defaults to CMM.TemplatePackingTime or 30 seconds if not specified
File Location: cmm.templates.lua
Syntax: CMM.RemoveDeployedTemplate( string DeploymentName , number Duration )
Return Value: nil
Parameters: Name Description
DeploymentNameThe name prefix of the deployed template to remove, this is returned by CMM.TemplateBuilder when the template is built
DurationThe duration in seconds over which the template will be removed, defaults to CMM.TemplatePackingTime or 30 seconds if not specified
Example: CMM.RemoveDeployedTemplate("FOB_01#01245", 300)
Example Description: Removes the deployed template with the name prefix "FOB_01#01245" over a duration of 300 seconds, scheduling the destruction of all associated objects in the CMM.DEPLOYED table for that template.
Related Functions:
Notes: