JoinUnitTables
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | JoinUnitTables | |
| Function Description: | Combines multiple tables of unit identifiers into a single table by extracting only string values from each input table, effectively merging unit names across different sources. | |
| File Location: | cmm.spawnFunctions.lua | |
| Syntax: | CMM.JoinUnitTables( table TableOfTables ) | |
| Return Value: | table | |
| Parameters: | Name | Description |
| TableOfTables | Table containing multiple sub-tables, each of which holds unit identifiers. Each entry in the sub-tables must be a string or a value of another type. | |
| Example: | CMM.JoinUnitTables({{"UnitA","UnitB"},{"UnitC","UnitD"}}) | |
| Example Description: | Merges two tables of unit names into one, resulting in a list containing "UnitA", "UnitB", "UnitC", and "UnitD". | |
| Related Functions: | ||
| Notes: | ||