mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
#SCENERY
* Clarification in docu for :FindByName()
This commit is contained in:
parent
3434ef47d9
commit
cd99c053df
@ -58,10 +58,10 @@ function SCENERY:GetThreatLevel()
|
|||||||
return 0, "Scenery"
|
return 0, "Scenery"
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Find a SCENERY object by it's name/id.
|
--- Create a SCENERY object from it's name/id.
|
||||||
--@param #SCENERY self
|
--@param #SCENERY self
|
||||||
--@param #string name The name/id of the scenery object as taken from the ME. Ex. '595785449'
|
--@param #string name The name/id of the scenery object as taken from the ME. Ex. '595785449'
|
||||||
--@return #SCENERY Scenery Object or nil if not found.
|
--@return #SCENERY Scenery Object - **Note** this might not point to anything useful. Check with `myscenery:IsAlive()` if it is valid.
|
||||||
function SCENERY:FindByName(name)
|
function SCENERY:FindByName(name)
|
||||||
local findAirbase = function ()
|
local findAirbase = function ()
|
||||||
local airbases = AIRBASE.GetAllAirbases()
|
local airbases = AIRBASE.GetAllAirbases()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user