Difference between revisions of "DCS func getController"

From DCS World Wiki - Hoggitworld.com
m (1 revision imported)
 
 
Line 45: Line 45:
 
}}
 
}}
 
[[Category:Class Functions|getController]]
 
[[Category:Class Functions|getController]]
 +
[[Category:Game Patch 1.2.0|getController]]

Latest revision as of 00:03, 21 March 2022

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:
Examples:
Related Functions: Unit Functions: isActive, getPlayerName, getID, getNumber, getCategoryEx, getObjectID, getController, getGroup, getCallsign, getLife, getLife0, getFuel, getAmmo, getSensors, hasSensors, getRadar, getDrawArgumentValue, getNearestCargos, enableEmission, getDescentCapacity

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

Coalition Object Functions: getCoalition, getCountry

Notes: