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

На главную

## transport.IsFriend( transportId )

Возвращает true, если транспорт дружественен главному игроку

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

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

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

    -- возвращаемые значения:
    boolean - true - транспорт дружественен игроку

    -- пример:
    local isFriend = transport.IsFriend( transportId )

#### Search: "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
FunctionAstralGetAstrolabeDeniedPlayers
FunctionAvatarGetBindedTransport
FunctionAvatarGetObservedAstralUnit
FunctionAvatarGetObservedTransport
FunctionAvatarGetTransportList
FunctionDeviceGetNavigatorTargetChests
FunctionDeviceNavigatorGetTarget
FunctionDeviceNavigatorGetZoomedObject
FunctionDeviceNavigatorSetTarget
FunctionTransportCanDrawInterface
FunctionTransportGetAcceleratorNominalMass
FunctionTransportGetDevices
FunctionTransportGetDirection
FunctionTransportGetEnergy
FunctionTransportGetHealthMaximum
FunctionTransportGetInsight
FunctionTransportGetMass
FunctionTransportGetPosition
FunctionTransportGetShieldStrength
FunctionTransportGetShipInfo
FunctionTransportGetVelocities
FunctionTransportIsEnemy
FunctionTransportIsFriend
FunctionUnitGetTransport

CategoryLuaApi CategoryFunction CategoryTransport

На главную