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

На главную


device.GetRelatedQuests( deviceId )

Возвращает список заданий, которые связаны с указанным устройством.

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

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

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

-- возвращаемые значения:
nil or table of QuestId - если такие задания имеются, то индексированный с 0 спиоск идентификаторов ресурсов заданий. Иначе nil.

-- пример:
local quests = device.GetRelatedQuests( deviceId )
if quests  then
 local questInfo = avatar.GetQuestInfo( quests[ 0 ] )
 if questInfo then
  LogInfo( questInfo.name )
 end
end

Search: "CategoryLuaApi" "CategoryDevice"

EnumTurnReason
EnumUsedev
EventCannonShotFinished
EventCannonShotPreparationStarted
EventCannonShotStarted
EventDeviceActiveActionChanged
EventDeviceChanged
EventDeviceCooldownFinished
EventDeviceCooldownsEnableChanged
EventDeviceCooldownStarted
EventDeviceDamageReceived
EventDeviceDeadChanged
EventDeviceDespawned
EventDeviceOfflineChanged
EventDeviceOfflineReason
EventDeviceRelatedQuestsChanged
EventDevicesChanged
EventDeviceSpawned
EventDeviceZeroSpeed
EventNavigationScanerHubPveInfo
EventNavigationScanerHubPvpInfo
EventNavigationScanerHubStarted
EventNavigationScanerHubTrailsInfo
EventNavigatorFollowedChanged
EventNavigatorTargetChestsChanged
EventShieldRegenInProgressChanged
EventShieldStrengthChanged
EventUsableDeviceDespawned
EventUsableDevicesChanged
EventUsableDeviceSpawned
FunctionAvatarGetActiveUsableDeviceInfo
FunctionDeviceCanUse
FunctionDeviceGetCannonTarget
FunctionDeviceGetCooldown
FunctionDeviceGetMass
FunctionDeviceGetNavigatorTargetChests
FunctionDeviceGetRelatedQuestObjectives
FunctionDeviceGetRelatedQuests
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

На главную