Jump to content

DeployTemplate

From CMM Wiki
Revision as of 14:16, 10 February 2026 by Ozdeadmeat (talk | contribs) (DeployTemplate – created via PowerShell script (2026-02-11T01:16:06Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: DeployTemplate
Function Description: Deploys a GARRISON template within the time specified
File Location: cmm.DCSFunctions.lua
Syntax: CMM.DeployTemplate( table position , number direction , string deploymentName , string templateType , number country , number buildtime ,boolean or nil notification , table or nil warehouseInventory )
Return Value: table or nil
Parameters: Name Description
positionvec3 style Table {x, y, z}
directionA table representing a 3D vector {x, y, z} used to extract latitude and longitude via coord.LOtoLL.
deploymentNameName to be given to the Deployment --TODO might be removed at some point, seems redundant
templateTypeCMM Template Name
countryCountry ID to spawn the units in the template
buildtimeHow long the Deployment should take to complete
notificationBoolean to notify players or not [DEFAULT: false]
warehouseInventoryA getInventory() table that the Template should use if it has an available FARP object
Example: CMM.DeployTemplate(fob_pos,fob_dir,"FOB_01","FOB_01",CMM.bluforID,20,false)
Example Description: Deploys a FOB_01 style template for the blue coalition within 20 seconds
Related Functions:
Notes: