Returns an instance of the calling class for the object of a specified name. The objects name is defined either in the mission editor or within functions that can dynamically spawn objects. All static objects and unit names must be unique. However, groups may have the same name as a unit or static object.
This function can provide access to non activated units and groups.
Returns the category of the group.
Returns the coalition of the group.
Returns the controller of the specified object. Ships and ground units can only be controlled at a group level.
Airplanes and helicopters can be controlled at both a group and unit level
Returns a number which defines the unique mission id of a given object.
Returns the current size of the group. This value will change as units are destroyed. Can be used in combination with getUnit to not accidentally use to big a value for that function, or to access the last unit in the group.
Returns the unit object of the specified unitIndex within the group. If the index is not valid, this function will return nil.
Returns a table of unit objects indexed in unit order. Useful for getting unit specific data for every unit in the group.
Version
2.9.10.4160