Difference between revisions of "DCS func getName"

From DCS World Wiki - Hoggitworld.com
m (1 revision imported)
(No difference)

Revision as of 00:12, 12 April 2018

Scripting Root

Envrioment: Mission Scripting
Function: getName Added with: 1.2.0
Member Of: Object, Group
Syntax: string Object.getName(Class Self )
Description: Returns a string of the name of the object as defined by the mission editor or dynamic spawning functions.

Function also works with Unit, Static Object, Airbase


Return Value: string
Return Example: 'bob', "Unit #001"
Examples:
Related Functions: Object Functions: isExist, destroy, getCategory, getTypeName, getDesc, hasAttribute, getName, getPoint, getPosition, getVelocity, inAir

Group Functions: isExist, activate, destroy, getCategory, getCoalition, getName, getID, getUnit, getUnits, getSize, getInitialSize, getController, enableEmission

Notes: