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

На главную


object.IsDevice( id )

Возвращает true, если интерактивный объект является устройством.

-- библиотека
object

-- объявление
function IsDevice( id )

-- параметры
id: ObjectId - Id объекта

-- возвращаемые значения
boolean - true, если объект является устройством.

-- пример
local id = avatar.GetTarget()
if object.IsDevice( id ) then
  local name = device.GetName( id )
end

Search: "CategoryLuaApi" "CategoryObject"

EnumVendor
EventCannotAttachWidget3D
EventObjectDetectFinished
EventObjectDetectorListChanged
EventObjectDetectStarted
EventPickObject
EventProjectedObjectChanged
EventQuestMarkUpdated
EventSecretFinisherStatusChanged
FunctionAvatarEnableClientDetector
FunctionAvatarGetDetectedObjects
FunctionAvatarIsClientDetectorEnabled
FunctionObjectAddToProjected
FunctionObjectAttachVisibleObject
FunctionObjectAttachWidget2D
FunctionObjectAttachWidget3D
FunctionObjectDetachWidget2D
FunctionObjectDetachWidget3D
FunctionObjectGetDetectors
FunctionObjectGetInteractorInfo
FunctionObjectGetName
FunctionObjectGetPos
FunctionObjectGetProjectedInfo
FunctionObjectGetQuestMark
FunctionObjectGetWorldSecrets
FunctionObjectHasOnlyRepeatableQuests
FunctionObjectHasQuest
FunctionObjectHasWorldSecret
FunctionObjectHighlight
FunctionObjectIsAstralUnit
FunctionObjectIsDevice
FunctionObjectIsExist
FunctionObjectIsInUsageRange
FunctionObjectIsTransport
FunctionObjectIsUnit
FunctionObjectIsUsable
FunctionObjectIsVendor
FunctionObjectRemoveFromProjected
FunctionObjectSetControl3DForProjected
FunctionObjectSetCutTerrainArea
FunctionObjectUse


CategoryLuaApi CategoryFunction CategoryObject

На главную