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

На главную

## avatar.BindItemToActionPanel( itemId, index )

Привязывает предмет к слоту экшен панели.

Предмет может быть:

- usable предметом

- оружием

- одеждой

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

    -- объявление:
    function BindItemToActionPanel( itemId, index )

    -- параметры
    itemId: ObjectId - Id предмета, привязываемого к слоту
    index: number (int) - индекс слота от 0 до max

    -- возвращаемые значения
    нет

    -- пример использования
    local itemId = inventoryIds[0]

    BindItemToActionPanel( itemId, 0 )

#### Search: "CategoryLuaApi" "CategoryAction"

EnumActionFailCause
EnumActionResultSpecial
EventActionFailedExploit
EventActionFailedOther
EventActionFailedSpell
EventActionPanelChanged
EventActionPanelElementChanged
EventActionPanelElementEffect
EventActionProcessTerminated
EventActionProgressFinish
EventActionProgressFreeze
EventActionProgressStart
EventActionProgressUpdate
EventActionResultSpecialSpell
EventAEMarkPointClicked
EventAttackResult
EventAvatarDestinyPointsChanged
EventAvatarExperienceChanged
EventClientImageHideAll
EventClientImageShow
EventClientMessage
EventContextActionPointStarted
EventContextActionsChanged
EventHealingReceived
EventLootMark
EventMobEvaded
EventTakeItemsFailed
EventUnitHealReceivedTotal
FunctionAvatarBindItemToActionPanel
FunctionAvatarBindMountMetamorphToActionPanel
FunctionAvatarBindMountSkinToActionPanel
FunctionAvatarBindMountToActionPanel
FunctionAvatarBindSpellToActionPanel
FunctionAvatarGetActionInfo
FunctionAvatarGetAttackResult
FunctionAvatarGetContextActions
FunctionAvatarGetMaxActionCount
FunctionAvatarGetPetAggroMode
FunctionAvatarGetPetMoveMode
FunctionAvatarIsPetInCombat
FunctionAvatarPetAttack
FunctionAvatarSetPetAggroMode
FunctionAvatarSetPetMoveMode
FunctionAvatarStopCasting
FunctionAvatarSwapActionsInActionPanel
FunctionAvatarUnBindFromActionPanel

CategoryLuaApi CategoryFunction CategoryAction CategoryAvatar

На главную