Jump to content

NewConoy

From CMM Wiki
Revision as of 19:03, 31 December 2025 by Ozdeadmeat (talk | contribs) (NewConoy – created via PowerShell script (2026-01-01T06:03:34Z))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Return to CMM Command Reference
Environment: Mission Scripting
Function: NewConoy
Function Description: Creates a new convoy by defining a path of waypoints using predefined cone markers, assigning a group of units to follow the path, and executing custom waypoint scripts to control unit behavior during movement.
File Location: cmm.spawnFunctions.lua
Syntax: CMM.NewConoy( any Grp , table path )
Return Value: boolean
Parameters: Name Description
GrpEither a table or string representing the group to be assigned to the convoy; must reference a valid group in the mission editor.
pathArray of waypoints as a table, where each waypoint contains a point location; used to define the route for the convoy.
Example: CMM.NewConoy("MyGuy", {"CONE-1", "CONE-2", "CONE-3"})
Example Description: initialises a convoy using the "MyGuy" group and a path defined by cone markers, executing scripts at each waypoint to control unit movement and behavior.
Related Functions:
Notes: