mirror of
https://gitlab.com/hoggit/developers/hoggit.git
synced 2025-11-10 15:43:28 +00:00
CoordFuncForPlaneType -> CoordForPlaneType. Wasn't returning a function
anymore. Improves the luadoc on CoordForPlaneType.
This commit is contained in:
parent
26681732ed
commit
fda5cc0156
@ -29,11 +29,14 @@ HOGGIT.CoordsForGroup = function(grp, position)
|
|||||||
if not u then return "" end -- Can't get any units from the group to inspect.
|
if not u then return "" end -- Can't get any units from the group to inspect.
|
||||||
|
|
||||||
local groupPlaneType = u:getTypeName()
|
local groupPlaneType = u:getTypeName()
|
||||||
return HOGGIT.CoordFuncForPlaneType(groupPlaneType, position)
|
return HOGGIT.CoordForPlaneType(groupPlaneType, position)
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Given a plane type and position, return a string representing the position in a format useful for that planetype.
|
--- Given a plane type and position, return a string representing the position in a format useful for that planetype.
|
||||||
HOGGIT.CoordFuncForPlaneType = function(planeType, pos)
|
--@param planeType String indicating the DCS plane type. See Unit.getTypeName() in DCS Scripting docs.
|
||||||
|
--@param position The position (table of x,y,z) coordinates to be translated
|
||||||
|
--@return String of coordinates formatted so they can be useful for the given planeType
|
||||||
|
HOGGIT.CoordForPlaneType = function(planeType, pos)
|
||||||
local lat,long = coord.LOtoLL(pos)
|
local lat,long = coord.LOtoLL(pos)
|
||||||
local dms = function()
|
local dms = function()
|
||||||
return mist.tostringLL(lat, long, 0, "")
|
return mist.tostringLL(lat, long, 0, "")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user