DeployTemplate
Appearance
| 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 |
| position | vec3 style Table {x, y, z} | |
| direction | A table representing a 3D vector {x, y, z} used to extract latitude and longitude via coord.LOtoLL. | |
| deploymentName | Name to be given to the Deployment --TODO might be removed at some point, seems redundant | |
| templateType | GARRISON Template Name | |
| country | Country ID to spawn the units in the template | |
| buildtime | How long the Deployment should take to complete | |
| notification | Boolean to notify players or not [DEFAULT: false] | |
| warehouseInventory | A 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: | ||