Jump to content

ScheduleSpawnFARPObject: Difference between revisions

From CMM Wiki
ScheduleSpawnFARPObject – created via PowerShell script (2026-02-11T01:16:44Z)
 
m ScheduleSpawnFARPObject – created via PowerShell script (2026-06-24T22:27:24Z)
 
Line 1: Line 1:
{{Template:FunctionInfo|fName=          ScheduleSpawnFARPObject|fDescription=  Spawns a FARP object with a set of parameters supplied|parentFile=    cmm.templates.lua|syntax=        CMM.ScheduleSpawnFARPObject(argTable <TBL>)|return=        nil|returnDesc=    Returns nothing but spawns a static object based on the arguments provided and adds it to the CMM.DEPLOYED table for tracking|example=        CMM.ScheduleSpawnFARPObject({TemplateTBL = "FOB_01#01245", GroupName = "FOB_01#01245_FARP", Country = 82, SpawnPoint = {x=0,y=0,z=0}, Heading = 33, DynamicSpawn = true, Hotstart = false})|exampleDesc=    Returns nothing but spawns the FARP object and then adds it to the CMM.DEPLOYED table for tracking under the "FOB_01#01245" template|related=        |note=          |envType= CMM|par1=        table argTable|reqType1=    table|reqName1=    argTable|desc1=      Argument table for spawning FARP objects, {TemplateTBL <string>, GroupName <string>, Country <number>, SpawnPoint <table vec3>, Heading <number>, DynamicSpawn <boolean>, Hotstart <boolean>}}}
{{Template:FunctionInfo|fName=          ScheduleSpawnFARPObject|fDescription=  Spawns a FARP object with a set of parameters supplied|parentFile=    cmm.templates.lua|syntax=        CMM.ScheduleSpawnFARPObject(argTable <TBL>)|return=        nil|returnDesc=    Returns nothing but spawns a static object based on the arguments provided and adds it to the CMM.DEPLOYED table for tracking|example=        CMM.ScheduleSpawnFARPObject({TemplateTBL = "FOB_01#01245", GroupName = "FOB_01#01245_FARP", Country = 82, SpawnPoint = {x=0,y=0,z=0}, Heading = 33, DynamicSpawn = true, Hotstart = false})|exampleDesc=    Returns nothing but spawns the FARP object and then adds it to the CMM.DEPLOYED table for tracking under the "FOB_01#01245" template|related=        |note=          |envType= CMM|par1=        table argTable|reqType1=    table|reqName1=    argTable|desc1=      Argument table for spawning FARP objects, {TemplateTBL <string>, GroupName <string>, Country <number>, SpawnPoint <table vec3>, Heading <number>, DynamicSpawn <boolean>, Hotstart <boolean>, DynamicCargo <boolean>}}}

Latest revision as of 12:27, 24 June 2026

Return to CMM Command Reference
Environment: Mission Scripting
Function: ScheduleSpawnFARPObject
Function Description: Spawns a FARP object with a set of parameters supplied
File Location: cmm.templates.lua
Syntax: CMM.ScheduleSpawnFARPObject( table argTable )
Return Value: nil
Parameters: Name Description
argTableArgument table for spawning FARP objects, {TemplateTBL <string>, GroupName <string>, Country <number>, SpawnPoint , Heading <number>, DynamicSpawn <boolean>, Hotstart <boolean>, DynamicCargo <boolean>
Example: CMM.ScheduleSpawnFARPObject({TemplateTBL = "FOB_01#01245", GroupName = "FOB_01#01245_FARP", Country = 82, SpawnPoint = {x=0,y=0,z=0}, Heading = 33, DynamicSpawn = true, Hotstart = false})
Example Description: Returns nothing but spawns the FARP object and then adds it to the CMM.DEPLOYED table for tracking under the "FOB_01#01245" template
Related Functions:
Notes:
}