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

На главную


astral.GetObjectInfo( objectId )

Возвращает описание астрального объекта в астральном хабе игрока.

См. GamePosition - позиция объекта.

-- система:
UIState - расширенная информация, GameState - базовая информация

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

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

-- параметры:
objectId: ObjectId (not nil) - идентификатор юнита

-- возвращаемые значения:
table or nil - описание объекта. Таблица (если объект найден) с полями:
  name: WString - имя астрального объекта
  description: WString - текстовое описание астрального объекта
  position: GamePosition - координаты объекта в хабе.
  isEnabled: boolean - доступен ли объект
  sectorId: ObjectId or nil - если этот объект - червоточина, идентификатор сектора, в который ведёт червоточина
  collisionRadius: number(int) or nil - радиус коллизии объекта астрала. Если значение не задано, то вернет nil.

  {Часть, доступная только в UI:}
  image: TextureId - текстура с иконкой объекта
  collisionIcon: TextureId - масштабируемая текстура для проекции коллизии объекта астрала на карте.

-- пример:
local object = astral.GetObjectInfo( objectId )
if object then
  local name = object.name
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

На главную