Difference between revisions of "DCS func LLtoMGRS"
From DCS World Wiki - Hoggitworld.com
| (One intermediate revision by the same user not shown) | |||
| 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) | ||
| Line 55: | Line 55: | ||
}} | }} | ||
[[Category:Singleton Functions|LLtoMGRS]] | [[Category:Singleton Functions|LLtoMGRS]] | ||
| + | [[Category:Game Patch 1.2.0|LLtoMGRS]] | ||
