Пользовательские дополнения
На главную
device.GetScanerPvEInfo()
Если главный игрок использует навигационный сканер хабов (тип устройства - USDEV_SCANER) и включил на устройстве просмотр информации об астрале, возвращает информацию о текущем сканируемом хабе.
-- библиотека:
device
-- объявление:
function device.GetScanerPvEInfo()
-- параметры:
нет
-- возвращаемые значения:
table or nil - если устройство сканирует хаб и включено отслеживание астрала, то таблица с полями:
islandCount: number (int) - количество островов в хабе
wreckCount: number (int) - количество развалин в хабе
-- пример:
if device.IsScanerScanning() then
local hubPvEInfo = device.GetScanerPvEInfo()
if hubPvEInfo then
local islandCount = hubPvEInfo.islandCount
end
end
Search: "CategoryLuaApi" "CategoryDevice"
EnumTurnReason
EnumUsedev
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
FunctionAvatarGetUsableDeviceInfo
FunctionDeviceCanUse
FunctionDeviceGetCannonTarget
FunctionDeviceGetCooldown
FunctionDeviceGetItemInstalled
FunctionDeviceGetMass
FunctionDeviceGetNavigatorTargetChests
FunctionDeviceGetRelatedQuestObjectives
FunctionDeviceGetScanerHubInfo
FunctionDeviceGetScanerPvEInfo
FunctionDeviceGetScanerPvPInfo
FunctionDeviceGetScanerTrailInfo
FunctionDeviceGetScanerTrails
FunctionDeviceGetShieldStrength
FunctionDeviceGetShipSlotInfo
FunctionDeviceGetTitle
FunctionDeviceGetTransport
FunctionDeviceGetUsableDeviceType
FunctionDeviceHasNavigatorFollowedMarker
FunctionDeviceIsInUse
FunctionDeviceIsOffline
FunctionDeviceIsScanerScanning
FunctionDeviceIsShieldRegenInProgress
FunctionDeviceIsUsable
FunctionDeviceNavigatorGetTarget
FunctionDeviceNavigatorGetZoomedObject
FunctionDeviceNavigatorSetTarget
FunctionDeviceNavigatorZoom
FunctionDeviceSetScanerDestinationDevice
FunctionDeviceSetScanerDestinationTrail
FunctionTransportGetDevices
CategoryLuaApi
CategoryFunction
CategoryDevice
На главную