InsertTaskToWP
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | insertTaskToWP | |
| Function Description: | Adds a new task to a waypoint's task list by initializing the task structure if missing and appending the provided task to the tasks array. | |
| File Location: | cmm.spawnFunctions.lua | |
| Syntax: | CMM.insertTaskToWP( table wp , table task ) | |
| Return Value: | nil | |
| Parameters: | Name | Description |
| wp | Table representing a waypoint, must have a task field; if missing, a default task structure is created. | |
| task | Table containing the task definition to be added, including id, enabled, auto, number, and params fields. | |
| Example: | CMM.insertTaskToTWP({<wpTable>, <task>) | |
| Example Description: | Appends a move-to task to a waypoint's task list, initializing the task structure if necessary. | |
| Related Functions: | ||
| Notes: | ||