Difference between revisions of "DCS func LLtoMGRS"
From DCS World Wiki - Hoggitworld.com
Line 48: | Line 48: | ||
|examples= The following will output the full returned value as a string. | |examples= The following will output the full returned value as a string. | ||
− | local grid = coord.LLtoMGRS(coord.LOtoLL(Unit.getByName('bobTheTarget'))) | + | local grid = coord.LLtoMGRS(coord.LOtoLL(Unit.getByName('bobTheTarget'):getPoint())) |
local s = grid.UTMZone .. ' ' .. grid.MGRSDigraph .. ' ' .. grid.Easting .. ' ' .. grid.Northing | local s = grid.UTMZone .. ' ' .. grid.MGRSDigraph .. ' ' .. grid.Easting .. ' ' .. grid.Northing | ||
trigger.action.outText(s, 20) | trigger.action.outText(s, 20) |