Пользовательские дополнения

На главную


astral.GetScannedObjects()

Возвращает список таблиц с информацией об объектах (астрольные юниты, корабли), невидимых с корабля, но насканеных в хабе визором корабля, на котором находится главный игрок.

Типы объектов представлены enum "ENUM_HubScanInfoObjectType...":

"ENUM_HubScanInfoObjectType_Mob"
"ENUM_HubScanInfoObjectType_Ship"

-- библиотека:
astral

-- объявление:
function GetScannedObjects()

-- параметры:
нет

-- возвращаемые значения:
table of table - индексированный с 1 список таблиц с полями:
  type: string (enum "ENUM_HubScanInfoObjectType...") - тип объекта
  position: GamePosition - позиция объекта в хабе
  durationMs: number (integer) - время жизни объекта в миллисекундах
  elapsedMs: number (integer) - сколько миллисекунд назад произошло сканирование данного объекта.

-- пример:
local objects = astral.GetScannedObjects()
for i, scannedObject in ipairs( objects ) do
  local type = scannedObject.type
end

Search: "CategoryLuaApi" "CategoryAstralLua"

EnumFailType
EventAstralHubChanged
EventAstralIslandChanged
EventAstralIslandTimeChanged
EventAstralObjectEnabledChanged
EventAstralPoisChanged
EventAstralSectorChanged
EventAstralSectorCheckJumpResult
EventAstralWreckLootTaken
EventAstrolabeInfoChanged
EventAstrolabeSpellChanged
EventAstrolabeSpellEffect
EventIslandDeathLimitChanged
EventPlayerAstralUnlockChanged
EventScannedHubObjectsChanged
FunctionAstralAstrolabeJump
FunctionAstralCheckJump
FunctionAstralGetAddonInfo
FunctionAstralGetAddons
FunctionAstralGetAddonSectors
FunctionAstralGetAllPOIs
FunctionAstralGetAllSectorsObsolete
FunctionAstralGetAllTLsObsolete
FunctionAstralGetAstrolabeDeniedPlayers
FunctionAstralGetAstrolabeInfo
FunctionAstralGetAstrolabeInfoEx
FunctionAstralGetAstrolabeTarget
FunctionAstralGetCurrentSector
FunctionAstralGetHubCenter
FunctionAstralGetHubRadius
FunctionAstralGetIslandCollapseTime
FunctionAstralGetIslandDeathLimit
FunctionAstralGetObjectInfo
FunctionAstralGetObjects
FunctionAstralGetPlayerUnlockLevel
FunctionAstralGetPOIInfo
FunctionAstralGetPOITradeInfo
FunctionAstralGetScannedObjects
FunctionAstralGetSectorAstrolabeInfo
FunctionAstralGetSectorDirectPOI
FunctionAstralGetSectorEdges
FunctionAstralGetSectorEdgesById
FunctionAstralGetSectorEdgesObsolete
FunctionAstralGetSectorInfo
FunctionAstralGetSectorInfoById
FunctionAstralGetSectorPOIs
FunctionAstralGetSectorRelatedQuests
FunctionAstralGetUnits
FunctionAstralIsSectorKnownForGroup
FunctionAstralIsSectorKnownForPlayer


CategoryLuaApi CategoryFunction CategoryAstralLua

На главную