DCS func getByName

From DCS World Wiki - Hoggitworld.com

Scripting Root

Envrioment: Mission Scripting
Function: getByName Added with: 1.2.0
Member Of: Group, Unit, Static Object
Syntax: class Group.getByName(string name )
Description: 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.

Return Value: class
Return Example:
Related Functions: