mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
SCENERY
This commit is contained in:
parent
090de85388
commit
9a9ac6f2e1
@ -7621,7 +7621,7 @@ do -- SET_SCENERY
|
|||||||
|
|
||||||
--- Add SCENERY(s) to SET_SCENERY.
|
--- Add SCENERY(s) to SET_SCENERY.
|
||||||
-- @param #SET_SCENERY self
|
-- @param #SET_SCENERY self
|
||||||
-- @param #string AddScenery A single SCENERY.
|
-- @param Wrapper.Scenery#SCENERY AddScenery A single SCENERY object.
|
||||||
-- @return #SET_SCENERY self
|
-- @return #SET_SCENERY self
|
||||||
function SET_SCENERY:AddScenery( AddScenery )
|
function SET_SCENERY:AddScenery( AddScenery )
|
||||||
self:F2( AddScenery:GetName() )
|
self:F2( AddScenery:GetName() )
|
||||||
|
|||||||
@ -175,10 +175,11 @@ end
|
|||||||
function SCENERY:FindByZoneName( ZoneName )
|
function SCENERY:FindByZoneName( ZoneName )
|
||||||
local zone = ZoneName -- Core.Zone#ZONE
|
local zone = ZoneName -- Core.Zone#ZONE
|
||||||
if type(ZoneName) == "string" then
|
if type(ZoneName) == "string" then
|
||||||
zone = ZONE:FindByName(ZoneName)
|
zone = ZONE:FindByName(ZoneName) -- Core.Zone#ZONE_BASE
|
||||||
end
|
end
|
||||||
local _id = zone:GetProperty('OBJECT ID')
|
local _id = zone:GetProperty('OBJECT ID')
|
||||||
BASE:T("Object ID ".._id)
|
--BASE:I(string.format("Object ID is: %s",_id or "none"))
|
||||||
|
--BASE:T("Object ID ".._id)
|
||||||
if not _id then
|
if not _id then
|
||||||
-- this zone has no object ID
|
-- this zone has no object ID
|
||||||
BASE:E("**** Zone without object ID: "..ZoneName.." | Type: "..tostring(zone.ClassName))
|
BASE:E("**** Zone without object ID: "..ZoneName.." | Type: "..tostring(zone.ClassName))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user