Difference between revisions of "MIST makeUnitTable"

From DCS World Wiki - Hoggitworld.com
(No difference)

Revision as of 23:21, 13 April 2018


mist.makeUnitTable

Added with: Mist 1.0
Description
This function accepts table t (which must be indexed sequentially starting at 1), applies the UnitNameTable short-cut rules, and returns a new table of unit names. Also, this function adds the table key and value processed = true to the returned table, indicating that the table has already been “run through” the UnitNameTable processing/shortcuts (useful for self-rescheduling functions- obviously, you only need to apply the UnitNameTable rules the first time a self-rescheduling function is run!).
Syntax
table mist.makeUnitTable(table t )
Valid Input Values:
See unitNameTables
Return value:
table
Return example:
Example unitNameTable
Usage Examples:
The following code will deploy a smoke marker randomly inside a zone.

do

end

Notes:
See unitNameTables
Related Functions
list of funcs using unitNameTables

Scripting Engine

MIST Root Page