From fda5cc01563b6f22784029d5d2e009cbb566b32f Mon Sep 17 00:00:00 2001 From: Lugghawk Date: Fri, 11 Jan 2019 00:16:11 -0500 Subject: [PATCH] CoordFuncForPlaneType -> CoordForPlaneType. Wasn't returning a function anymore. Improves the luadoc on CoordForPlaneType. --- hoggit/group.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hoggit/group.lua b/hoggit/group.lua index 23f9f07..49c9731 100644 --- a/hoggit/group.lua +++ b/hoggit/group.lua @@ -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. local groupPlaneType = u:getTypeName() - return HOGGIT.CoordFuncForPlaneType(groupPlaneType, position) + return HOGGIT.CoordForPlaneType(groupPlaneType, position) end --- 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 dms = function() return mist.tostringLL(lat, long, 0, "")