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

На главную


hangar.GetShips()

Возвращает список идентификаторов кораблей, находящихся в ангаре главного игрока.

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

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

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

-- возвращаемые значения -
nil or table of ObjectId  - список (индексированная числами от 0 таблица) идентификаторов кораблей

-- пример:
local ships = hangar.GetShips()
if ships then
  for i, shipId in pairs( ships ) do
    local shipInfo = hangar.GetShipInfo( shipId )
  end
end

См. также EVENT_HANGAR_SHIPS_CHANGED

Search: "CategoryLuaApi" "CategoryHangar"

EnumCannonVisualType
EnumShipInfoMarker
EventHangarActiveHullChanged
EventHangarActiveShipChanged
EventHangarActiveShipHullsChanged
EventHangarActiveShipSkinsChanged
EventHangarActiveSkinChanged
EventHangarDevicesReceived
EventHangarRepairQuestion
EventHangarShipsChanged
EventHangarSlotDevicesReceived
EventHangarSpellChanged
EventHangarSpellEffect
EventShipCustomizationChanged
EventShipCustomizationFinished
EventShipCustomizationStarted
EventTransportRenameReply
EventTransportRenameReplyResult
FunctionHangarApplyCustomization
FunctionHangarCanCustomize
FunctionHangarCanLendShip
FunctionHangarCanRemoveDevice
FunctionHangarChangeSlotCustomization
FunctionHangarGetActiveShip
FunctionHangarGetActiveShipHull
FunctionHangarGetActiveShipSkin
FunctionHangarGetAllowedDeviceTypes
FunctionHangarGetAvailableHulls
FunctionHangarGetAvailableSkins
FunctionHangarGetBuildProgress
FunctionHangarGetCustomizationCost
FunctionHangarGetCustomizationCurrency
FunctionHangarGetCustomizationSlotDevices
FunctionHangarGetCustomizationSlotInfo
FunctionHangarGetCustomizationSlots
FunctionHangarGetDeviceInfo
FunctionHangarGetDevices
FunctionHangarGetHullInfo
FunctionHangarGetLendShipSpellId
FunctionHangarGetRandomName
FunctionHangarGetRepairProgress
FunctionHangarGetReturnLendedShipSpellId
FunctionHangarGetShipInfo
FunctionHangarGetShips
FunctionHangarGetSkinInfo
FunctionHangarGetSlotDevices
FunctionHangarGetSummonShipSpellId
FunctionHangarGetSwitchShipMasterHullSpellId
FunctionHangarGetSwitchShipSkinSpellId
FunctionHangarGetTakeAwaySpellId
FunctionHangarGetUnsummonShipSpellId
FunctionHangarLendShip
FunctionHangarPreviewPurchasedDevice
FunctionHangarPurchaseDevice
FunctionHangarRemoveDevice
FunctionHangarRemoveDeviceFromHangar
FunctionHangarRename
FunctionHangarRepairReply
FunctionHangarReplaceDevice
FunctionHangarResetDevicePreview
FunctionHangarRevertCustomization
FunctionHangarSummonShip
FunctionHangarSwitchShipMasterHull
FunctionHangarSwitchShipSkin
FunctionHangarTakeAwayShip
FunctionHangarUnsummonShip
ShipSkinId
VisualShipId


CategoryLuaApi CategoryFunction CategoryHangar

На главную