Jump to content

Way

From CMM Wiki
Return to CMM Command Reference
Environment: Mission Scripting
Function: way
Function Description: Constructs and configures scripted waypoint callbacks for a group's route on the ground, building a decorated route table with each waypoint equipped with a callback task. It iterates through the route, creates a waypoint configuration, inserts a callback, and returns the fully decorated route.
File Location: cmm.spawnFunctions.lua
Syntax: CMM.way( string _groupName , table _route )
Return Value: table
Parameters: Name Description
_groupNameThe name of the group that will traverse the route, used in waypoint callback identification and logging.
_routeA table of waypoint positions, each entry is a position vector or coordinate, used to build the ground route.
Example: CMM.waypointActions.insertAllGroundWPCallbacks("GroupA", {{x=100,y=200,z=0}, {x=300,y=400,z=0}})
Example Description: Builds a route for "GroupA" with two ground waypoints, each equipped with a callback that will execute when the group arrives, and returns the fully configured route for further use.
Related Functions:
Notes: