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

На главную


hangar.ChangeSlotCustomization( slotId, deviceId )

Устанавливает устройство в слот визуальной кастомизации корабля главного игрока в ангаре.

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

-- объявление:
function ChangeSlotCustomization( slotId, deviceId )

-- параметры:
slotId: ObjectId - идентификатор слота для кастомизации
deviceId: ObjectId or nil - идентификатор устройства для кастомизации или nil, если надо снять устройства с этого слота

-- возвращаемые значения
нет

-- пример:
local slots = hangar.GetCustomizationSlots()

if slots and slots[ 0 ] then
  local devices = hangar.GetCustomizationSlotDevices( slots[ 0 ] )
  if devices[ 0 ] then
    ChangeSlotCustomization( slots[ 0 ], devices[ 0 ] )
  end
end

if slots and slots[ 1 ] then
  ChangeSlotCustomization( slots[ 1 ], nil )
end

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

На главную