ScenEdit_GetFormation (table)
This function gets the properties of a groups formation.
Parameters
-
table {}
- side = string The side name of the unit
- name = string The name of unit
- guid = string The GUID of the unit
Returns
Unit wrapper if the unit exists, ornil
otherwise
Note: When run interactively (i.e. in the console) ScenEdit_GetUnit() will raise an exception if the selected unit is not found. This can be prevented using Tool_EmulateNoConsole().
Example 1
local formation = ScenEdit_GetFormation({side='Blue', name='Group 16'})
print(formation)