Jump to content

TemplateBuilder

From CMM Wiki
Revision as of 12:27, 24 June 2026 by Ozdeadmeat (talk | contribs) (TemplateBuilder – created via PowerShell script (2026-06-24T22:27:24Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: TemplateBuilder
Function Description: Builds Saved Tempates
File Location: cmm.templates.lua
Syntax: CMM.TemplateBuilder( table pos , number dir , string DeploymentName , string TemplateName , number BuildCountry , number BuildTime ,table or nil FARPSettings )
Return Value: string or nil
Parameters: Name Description
posvec3 table
dirDirection the template will face when deployed
DeploymentNameName of the Deployment, (Do Check if unique against CMM.DEPLOYED)
TemplateNameName of the template to lookup
BuildCountryThe country side to build the template for
BuildTimeHow long you want the build to take to complete
FARPSettingsHow long you want the build to take to complete
Example: CMM.TemplateBuilder({x,y,z}, 33,"FOB_01", 81, 300)
Example Description: Build a template named FOB_01 in the direction of 33 facing the country side 81 and have it complete the build process in 300 seconds
Related Functions:
Notes: