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

На главную

## avatar.GetInteractorInfo()

Возвращает информацию по собеседнику, если он есть. Возвращаемая информация такая же, как и в object.GetInteractorInfo( id ).

Необходимо вызывать после EVENT_INTERACTION_STARTED. Во время разговора нельзя менять цель.

До разговора можно узнать информацию, используя object.GetInteractorInfo( id ). Но она может быть не точна.

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

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

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

    -- возвращаемые значения
    table or nil - в случае наличия собеседника возвращается таблица, иначе nil. Поля таблицы см. в object.GetInteractorInfo( id )

    -- пример
    local info = avatar.GetInteractorInfo()
    if info then
     isMailBox = info.isMailBox
    end

#### Search: "CategoryLuaApi" "CategoryInteraction"

EnumLearnError
EnumVendor
EventInteractionStarted
EventItemsExchangeCanceled
EventItemsExchangeCompleted
EventItemsExchangeDeclineIgnored
EventItemsExchangeError
EventItemsExchangeInvited
EventItemsExchangeOfferFinalConfirmedChanged
EventItemsExchangeOfferItemsChanged
EventItemsExchangeOfferMoneyChanged
EventItemsExchangeOfferPrimaryConfirmedChanged
EventItemsExchangeSlotIsBusy
EventItemsExchangeStarted
EventItemsExchangeStateChanged
EventKnownTeleportLocationUpdated
EventTalkStarted
EventTalkStopped
EventTrainerLearnError
EventTrainerNotEnoughMoney
EventVendorBuyNotEnoughPlace
EventVendorBuyReputationIsTooSmall
EventVendorItemAlreadySold
EventVendorItemNotForSale
EventVendorListUpdated
FunctionAvatarBuy
FunctionAvatarBuyToSlot
FunctionAvatarGetInteractorCue
FunctionAvatarGetInteractorCurrentLocations
FunctionAvatarGetInteractorInfo
FunctionAvatarGetInteractorNextCues
FunctionAvatarGetInteractorTeleportLocations
FunctionAvatarGetInterlocutor
FunctionAvatarGetTeleportLocationInfo
FunctionAvatarGetTeleportLocations
FunctionAvatarGetVendorBuyback
FunctionAvatarGetVendorList
FunctionAvatarHasInteractorCue
FunctionAvatarHasInteractorQuest
FunctionAvatarIsInteractorRootCue
FunctionAvatarIsInteractorTrainer
FunctionAvatarIsInteractorVendor
FunctionAvatarIsTalking
FunctionAvatarRequestInteractions
FunctionAvatarRequestVendor
FunctionAvatarReturnToStartCue
FunctionAvatarSelectInteractorCue
FunctionAvatarSellItemToVendor
FunctionAvatarStartInteract
FunctionAvatarStopInteract
FunctionAvatarTeleportToLocation
FunctionInteractionCancelExchange
FunctionInteractionGetExchangeInvited
FunctionInteractionGetExchangeInviter
FunctionInteractionGetExchangeSlotCount
FunctionInteractionHasExchange
FunctionInteractionInviteToExchange
FunctionInteractionIsAvatarExchangeInviter
FunctionInteractionIsExchangeInInvitation
FunctionInteractionIsExchangeInProgress
FunctionInteractionRemoveExchangeItem
FunctionObjectGetInteractorInfo
FunctionObjectHasQuest
FunctionObjectHasWorldSecret
FunctionObjectIsVendor
FunctionUnitGetTrainerClass
FunctionUnitIsTrainer

CategoryLuaApi CategoryFunction CategoryInteraction CategoryAvatar

На главную