Jump to content

MoveConvoy

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: MoveConvoy
Function Description: Moves a convoy from an initial to a destination position by calculating a route, generating waypoint data, inserting script commands, and assigning the route to the convoy via a new mission.
File Location: cmm.spawnFunctions.lua
Syntax: CMM.MoveConvoy( string ConvoyName , table initVec3 , table destVec3 )
Return Value: nil
Parameters: Name Description
ConvoyNameName of the convoy group to move, must exist in the mission editor.
initVec3Starting position vector3 for the convoy, used as the origin point for route calculation.
destVec3Destination position vector3 for the convoy, used as the endpoint for route calculation.
Example: CMM.MoveConvoy("ConvoyAlpha", {x=100, y=200, z=50}, {x=300, y=400, z=100})
Example Description: Initiates movement of "ConvoyAlpha" from (100,200,50) to (300,400,100) by computing a route, generating waypoints with script commands, and assigning the route to the convoy.
Related Functions:
Notes: