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

На главную

## mount.IsStableExist()

Возвращает true, если у главного игрока есть конюшня.

    -- библиотека:
    mount

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

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

    -- возвращаемые значения:
    boolean - true, если у главного игрока есть конюшня

    -- пример:
    if mount.IsStableExist() then
      local activeId = mount.GetActive()
      if activeId then
        local mountInfo = mount.GetInfo( activeId )
        if mountInfo then
          local maxTimeMs = mountInfo.satiationMs
          local currentTimeMs = mount.GetActiveSatiation()
        end
      end
    end

#### Search: "CategoryLuaApi" "CategoryMount"

EventActiveMountChanged
EventActiveMountSkinChanged
EventActiveMountTimeLeftChanged
EventStableFoodCountChanged
EventStableMountAdded
EventStableMountChanged
EventStableMountHungry
EventStableMountLevelChanged
EventStableMountRemoved
EventStableMountsChanged
EventStableMountSkinsChanged
EventStableSlotsCountChanged
EventUnitMountHealthChanged
FunctionAvatarBindMountMetamorphToActionPanel
FunctionAvatarBindMountSkinToActionPanel
FunctionAvatarBindMountToActionPanel
FunctionMissionSetMountScene
FunctionMountDismount
FunctionMountFeed
FunctionMountGetActive
FunctionMountGetActiveSatiation
FunctionMountGetActiveSkin
FunctionMountGetActiveTimeLeftMs
FunctionMountGetInfo
FunctionMountGetMetamorph
FunctionMountGetMetamorphBaseInfo
FunctionMountGetMetamorphName
FunctionMountGetMounts
FunctionMountGetMountSkins
FunctionMountGetSkinInfo
FunctionMountGetStableInfo
FunctionMountGetUnitMountHealth
FunctionMountGetValuedObject
FunctionMountHasSwitchCost
FunctionMountIsMountExist
FunctionMountIsStableExist
FunctionMountRide
FunctionMountSetMetamorphSkin
FunctionMountSetSkin
FunctionSocialGetBackMount
FunctionSocialGiveBackMount
FunctionSocialLendMount

CategoryLuaApi CategoryFunction CategoryMount

На главную