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

На главную

## transport.GetHealthMaximum( transportId )

Возвращает значение здоровья максимально возможного для имеющегося корпуса. Если транспорт не найден, то возвращает ноль.

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

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

    -- параметры:
    transportId: ObjectId (not nil) -- идентификатор транспортного средства

    -- возвращаемые значения -
    number( int ) - значение здоровья максимально возможного для имеющегося корпуса

    -- пример:
    local healthMaximum = transport.GetHealthMaximum( transportId )

#### Связанные страницы: "CategoryLuaApi" "CategoryTransport"

EnumCriticalMalfunctionType
EnumShipSide
EventAstrolabeInfoChanged
EventAvatarBindedTransportChanged
EventAvatarTransportChanged
EventReactorCountDown
EventReactorCountDownCancelled
EventShipDamageReceived
EventTransportAccelerationTargetChanged
EventTransportAngularVelocityChanged
EventTransportCriticalMalfunction
EventTransportDespawned
EventTransportDevicesChanged
EventTransportDirectionChanged
EventTransportEnergyChanged
EventTransportHorizontalVelocityChanged
EventTransportInsightChanged
EventTransportObservingFinished
EventTransportObservingStarted
EventTransportPosChanged
EventTransportsChanged
EventTransportShieldChanged
EventTransportShipInfoChanged
EventTransportSpawned
EventTransportVerticalVelocityChanged
FunctionAstralAstrolabeJump
FunctionAstralCheckJump
FunctionAstralGetAstrolabeDeniedPlayers
FunctionAvatarGetBindedTransport
FunctionAvatarGetObservedAstralUnit
FunctionAvatarGetObservedTransport
FunctionAvatarGetTransportList
FunctionDeviceGetNavigatorTargetChests
FunctionDeviceNavigatorGetTarget
FunctionDeviceNavigatorGetZoomedObject
FunctionDeviceNavigatorSetTarget
FunctionTransportCanDrawInterface
FunctionTransportGetAcceleratorNominalMass
FunctionTransportGetDevices
FunctionTransportGetDirection
FunctionTransportGetEnergy
FunctionTransportGetHealthMaximum
FunctionTransportGetInsight
FunctionTransportGetMass
FunctionTransportGetPosition
FunctionTransportGetShieldStrength
FunctionTransportGetShipInfo
FunctionTransportGetVelocities
FunctionUnitGetTransport

CategoryLuaApi CategoryFunction CategoryTransport

На главную