Пользовательские дополнения
На главную
avatar.GetDetectedObjects()
Возвращает список Id объектов (устройство или юнит), отслеживаемых главным игроком на карте.
-- библиотека:
avatar
-- объявление:
function GetDetectedObjects()
-- параметры:
нет
-- возвращаемые значения:
table of ObjectId – идентификаторы отслеживаемых объектов (устройство или юнит)
-- пример:
local detectedObjects = avatar.GetDetectedObjects()
for i, objectId in detectedObjects do
local pos = debugMission.UnitGetPos( objectId )
local detectors = object.GetDetectors( objectId )
end
Связанные страницы: "CategoryLuaApi" "CategoryObject"
CategoryObject
EnumVendor
EventCannotAttachWidget3D
EventObjectCombatStatusChanged
EventObjectDetectFinished
EventObjectDetectorListChanged
EventObjectDetectStarted
EventObjectHealthChanged
EventObjectNameChanged
EventObjectSelectableChanged
EventObjectUiinfoChanged
EventPickObject
EventProjectedObjectsChanged
EventQuestMarkUpdated
EventSecretFinisherStatusChanged
FunctionAvatarEnableClientDetector
FunctionAvatarGetDetectedObjects
FunctionAvatarIsClientDetectorEnabled
FunctionObjectAddToProjected
FunctionObjectAttachWidget2D
FunctionObjectAttachWidget3D
FunctionObjectDetachAllWidgets3D
FunctionObjectDetachWidget2D
FunctionObjectDetachWidget3D
FunctionObjectGetBuffInfo
FunctionObjectGetBuffInstances
FunctionObjectGetBuffs
FunctionObjectGetDetectors
FunctionObjectGetHealthInfo
FunctionObjectGetInteractorInfo
FunctionObjectGetInteractorQuests
FunctionObjectGetName
FunctionObjectGetPos
FunctionObjectGetProjectedInfo
FunctionObjectGetUIInfo
FunctionObjectGetWorldSecrets
FunctionObjectHasQuest
FunctionObjectHasWorldSecret
FunctionObjectHighlight
FunctionObjectIsAstralUnit
FunctionObjectIsDead
FunctionObjectIsDetected
FunctionObjectIsDevice
FunctionObjectIsEnemy
FunctionObjectIsExist
FunctionObjectIsFar
FunctionObjectIsFriend
FunctionObjectIsInCombat
FunctionObjectIsInUsageRange
FunctionObjectIsTransport
FunctionObjectIsUnit
FunctionObjectIsUsable
FunctionObjectIsVendor
FunctionObjectRemoveBuff
FunctionObjectRemoveFromProjected
FunctionObjectSetControl3DForProjected
FunctionObjectSetCutTerrainArea
FunctionObjectStartVisualAction
FunctionObjectStopVisualAction
CategoryLuaApi
CategoryFunction
CategoryAvatar
CategoryObject
На главную