mirror of
https://gitlab.com/hoggit/developers/hoggit.git
synced 2025-11-10 15:43:28 +00:00
9 lines
235 B
Lua
9 lines
235 B
Lua
-- 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
|