Difference between revisions of "DCS func getObjectID"
From DCS World Wiki - Hoggitworld.com
(Created page with "{{Template:dcs_funcs |fName= getObjectID |vNum= 1.2.4 |par1= Unit |par2= |par3= |par4= |desc= Returns the runtime object Id associated with the uni...") |
|||
Line 42: | Line 42: | ||
["_id"] = 13777728, | ["_id"] = 13777728, | ||
} | } | ||
+ | As a result you can also get the objectID without calling this function. For example: | ||
+ | local unit = Unit.getByName('bob') | ||
+ | env.info(unit["_id"]) | ||
}} | }} | ||
[[Category:Class Functions|getObjectID]] | [[Category:Class Functions|getObjectID]] | ||
[[Category:Game Patch 1.2.4|getObjectId]] | [[Category:Game Patch 1.2.4|getObjectId]] |