Difference between revisions of "DCS func getObjectID"
From DCS World Wiki - Hoggitworld.com
Line 40: | Line 40: | ||
|notes= If you ever serialized an object like a unit, weapon, etc it would be something like the following: | |notes= If you ever serialized an object like a unit, weapon, etc it would be something like the following: | ||
object = { | object = { | ||
− | [" | + | ["id_"] = 13777728, |
} | } | ||
As a result you can also get the objectID without calling this function. For example: | As a result you can also get the objectID without calling this function. For example: | ||
local unit = Unit.getByName('bob') | local unit = Unit.getByName('bob') | ||
− | env.info(unit[" | + | 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]] |