DCS func getController

From DCS World Wiki - Hoggitworld.com

Scripting Root

Envrioment: Mission Scripting
Function: getController Added with: 1.2.0
Member Of: Group, Unit
Syntax: Controller Group.getController(Class Self )
Description: 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.

Return Value: Controller
Return Example:
Related Functions: Unit Functions: isActive, getPlayerName, getID, getNumber, getController, getGroup, getCallsign, getLife, getLife0, getFuel, getAmmo, getSensors, hasSensors, getRadar, getDrawArgumentValue, getNearestCargos, enableEmission

Object Functions: isExist, destroy, getCategory, getTypeName, getDesc, hasAttribute, getName, getPoint, getPosition, getVelocity, inAir

Coalition Object Functions: getCoalition, getCountry