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

На главную


avatar.GetInteractorCurrentLocation()

Возвращает идентификатор точки телепортации, в которой находится мастер телепорта, с которым сейчас разговаривает главный игрок.

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

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

-- параметры
нет

-- возвращаемые значения
ObjectId or nil - идентификатор точки телепортации или nil, если такой информации нет

-- пример
local locationid = avatar.GetInteractorCurrentLocation()
if locationid then
  local locationInfo = avatar.GetTeleportLocationInfo( locationid )
  if locationInfo then
    local name = locationInfo.name
  end
end

Search: "CategoryLuaApi" "CategoryTeleportMaster"

FunctionAvatarGetInteractorCurrentLocations
FunctionAvatarGetInteractorTeleportLocations
FunctionAvatarGetTeleportLocationInfo
FunctionAvatarGetTeleportLocations
FunctionAvatarIsTeleportLocationValid
FunctionAvatarTeleportToLocation


CategoryLuaApi CategoryFunction CategoryInteraction CategoryTeleportMaster CategoryAvatar

На главную