Difference between revisions of "DCS func LOtoLL"
From DCS World Wiki - Hoggitworld.com
m (1 revision imported) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
|rtnType= latitude, longitude, altitude | |rtnType= latitude, longitude, altitude | ||
− | |rtnExample= | + | |rtnExample= Returned from printing the lat and lon values to a log file. |
+ | |||
+ | 41.4795673 | ||
+ | -82.681172 | ||
|reqType1= table | |reqType1= table | ||
Line 39: | Line 42: | ||
[[DCS_singleton_coord|'''Coord Functions:''']] {{listOfCoordFuncs}} | [[DCS_singleton_coord|'''Coord Functions:''']] {{listOfCoordFuncs}} | ||
− | |examples= | + | |examples= The following would be used to output the lat and lon of a unit named bob. |
+ | local curPoint = Unit.getByName('bob'):getPoint() | ||
+ | local lat, lon, alt = coord.LOtoLL(curPoint) | ||
+ | trigger.action.outText('Bob is at the raw coordinates of \nLatitude: ' .. lat .. ' \nLongitude: ' .. lon .. '\nAltitude: ' .. alt, 20) | ||
Line 45: | Line 51: | ||
}} | }} | ||
[[Category:Singleton Functions|LOtoLL]] | [[Category:Singleton Functions|LOtoLL]] | ||
+ | [[Category:Game Patch 1.2.0|LOtoLL]] |