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

На главную

## mount.GetActiveSatiation()

Возвращает время в миллисекундах до полного истощения вызванного ездового животного главного игрока.

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

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

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

    -- возвращаемые значения:
    number (integer) - время в миллисекундах до полного истощения

    -- пример:
    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

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

EventActiveMountChanged
EventActiveMountSkinChanged
EventActiveMountTimeLeftChanged
EventStableFoodCountChanged
EventStableMountAdded
EventStableMountChanged
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

На главную