Merge remote-tracking branch 'origin/master' into branch

# Conflicts:
#	Moose Development/Moose/Core/Base.lua
This commit is contained in:
Applevangelist
2025-01-30 09:05:56 +01:00
7 changed files with 38 additions and 5 deletions

View File

@@ -1221,7 +1221,14 @@ end
-- @return Core.Point#COORDINATE The COORDINATE of the GROUP.
function GROUP:GetCoordinate()
local Units = self:GetUnits() or {}
-- First try to get the 3D vector of the group. This uses
local vec3=self:GetVec3()
if vec3 then
local coord=COORDINATE:NewFromVec3(vec3)
return coord
end
local Units = self:GetUnits() or {}
for _,_unit in pairs(Units) do
local FirstUnit = _unit -- Wrapper.Unit#UNIT

View File

@@ -91,6 +91,7 @@ function SCENERY:SetProperty(PropertyName, PropertyValue)
self.Properties[PropertyName] = PropertyValue
return self
end
--- Obtain object name.
--@param #SCENERY self
--@return #string Name