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

На главную


## page was renamed from FunctionAvatarGetActiveUsableDeviceActionsInfo

device.GetUsableDeviceActionsInfo( usableDeviceId )

Возвращает информацию обо всех действиях устройства.

Описание таблицы с информацией о действии смотри в device.GetUsableDeviceActionInfo( usableDeviceId, actionIndex ).

-- система:
GameState

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

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

-- параметры:
usableDeviceId: ObjectId (not nil) - идентификатор устройства

-- возвращаемое значение:
table of tables or nil: таблица с информацией о действиях устройстве или nil, если ошибка.
 ключ - индекс действия (начинается с 0)
 значение - таблица с информацией о действии

-- пример:
local info = device.GetUsableDeviceInfo( usableDeviceId )

if info and info.actionsCount > 0 then
  LogInfo( "Action list: )
  local actions = device.GetUsableDeviceActionsInfo( usableDeviceId )

  for i = 0, info.actionsCount do
    LogInfo( actions[i].name )
  end
else
  LogInfo( "No actions" )
end

Связанные страницы: "CategoryLuaApi" "CategoryDevice"

EnumTurnReason
EnumUsedev
EventBeamCannonShotStarted
EventCannonShotFinished
EventCannonShotPreparationStarted
EventCannonShotStarted
EventChestLooterChanged
EventDeviceActionEffectivenessChanged
EventDeviceActiveActionChanged
EventDeviceCooldownFinished
EventDeviceCooldownsEnableChanged
EventDeviceCooldownStarted
EventDeviceDamageReceived
EventDeviceDeadChanged
EventDeviceOfflineChanged
EventDeviceOfflineReason
EventDeviceRelatedQuestsChanged
EventDevicesChanged
EventDeviceZeroSpeed
EventNavigationScanerHubPveInfo
EventNavigationScanerHubPvpInfo
EventNavigationScanerHubStarted
EventNavigationScanerHubTrailsInfo
EventNavigatorFollowedChanged
EventNavigatorTargetChestsChanged
EventShieldRegenInProgressChanged
EventShieldStrengthChanged
EventUsableDevicesChanged
FunctionAvatarGetActiveUsableDevice
FunctionDeviceCanUse
FunctionDeviceGetCannonTarget
FunctionDeviceGetCooldown
FunctionDeviceGetItemInstalled
FunctionDeviceGetMass
FunctionDeviceGetNavigatorTargetChests
FunctionDeviceGetRelatedQuestObjectives
FunctionDeviceGetShieldStrength
FunctionDeviceGetShipSlotInfo
FunctionDeviceGetTitle
FunctionDeviceGetTransport
FunctionDeviceGetUsableDeviceActionInfo
FunctionDeviceGetUsableDeviceActionsInfo
FunctionDeviceGetUsableDeviceInfo
FunctionDeviceGetUsableDeviceType
FunctionDeviceHasNavigatorFollowedMarker
FunctionDeviceHasRelatedQuestObjectives
FunctionDeviceIsInUse
FunctionDeviceIsOffline
FunctionDeviceIsShieldRegenInProgress
FunctionDeviceIsUsable
FunctionDeviceNavigatorGetTarget
FunctionDeviceNavigatorGetZoomedObject
FunctionDeviceNavigatorSetTarget
FunctionDeviceNavigatorZoom
FunctionTransportGetDevices


CategoryLuaApi CategoryFunction CategoryDevice

На главную