adds group.lua. getLatLongString to utils.

This commit is contained in:
Lugghawk
2018-12-24 18:39:56 -05:00
parent a983d1b2d8
commit cfe5f10823
3 changed files with 15 additions and 0 deletions

8
lib/group.lua Normal file
View File

@@ -0,0 +1,8 @@
-- Returns the location of the first unit in a given group.
-- If the group is nil, this function returns nil.
HOGGIT.groupCoords = function(grp)
if grp ~= nil then
return grp:getUnits()[1]:getPosition().p
end
return nil
end