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

На главную


astral.IsSectorKnownForGroup( playerId, sectorId )

Возвращает true, если указанный астральный сектор исследован (доступен по астральному анлоку) у игрока с учетом группы, в которой он состоит: или сектор открыт у самого игрока, или доступен по групповому анлоку.

Т.е. max(sectorAvatarLevel, sectorAstralLevel) <= max(playerAstralUnlock, groupAstralUnlock)

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

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

-- параметры: playerId: ObjectId - идентификатор игрока
sectorId: ObjectId - идентификатор астрального сектора

-- возвращаемые значения:
bool - исследован ли сектор

-- пример:
sectorVisible = astral.IsSectorKnownForGroup( playerId, sectorId )

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

EnumFailType
EventAstralHubChanged
EventAstralIslandChanged
EventAstralIslandTimeChanged
EventAstralObjectEnabledChanged
EventAstralPoisChanged
EventAstralSectorChanged
EventAstralSectorCheckJumpResult
EventAstralWreckLootTaken
EventAstrolabeInfoChanged
EventAstrolabeSpellChanged
EventAstrolabeSpellEffect
EventIslandDeathLimitChanged
EventPlayerAstralUnlockChanged
EventScannedHubObjectsChanged
FunctionAstralAstrolabeJump
FunctionAstralCheckJump
FunctionAstralGetAddonInfo
FunctionAstralGetAddons
FunctionAstralGetAddonSectors
FunctionAstralGetAllPOIs
FunctionAstralGetAllSectorsObsolete
FunctionAstralGetAllTLsObsolete
FunctionAstralGetAstrolabeDeniedPlayers
FunctionAstralGetAstrolabeInfo
FunctionAstralGetAstrolabeInfoEx
FunctionAstralGetAstrolabeTarget
FunctionAstralGetCurrentSector
FunctionAstralGetHubCenter
FunctionAstralGetHubRadius
FunctionAstralGetIslandCollapseTime
FunctionAstralGetIslandDeathLimit
FunctionAstralGetObjectInfo
FunctionAstralGetObjects
FunctionAstralGetPlayerUnlockLevel
FunctionAstralGetPOIInfo
FunctionAstralGetPOITradeInfo
FunctionAstralGetScannedObjects
FunctionAstralGetSectorAstrolabeInfo
FunctionAstralGetSectorDirectPOI
FunctionAstralGetSectorEdges
FunctionAstralGetSectorEdgesById
FunctionAstralGetSectorEdgesObsolete
FunctionAstralGetSectorInfo
FunctionAstralGetSectorInfoById
FunctionAstralGetSectorPOIs
FunctionAstralGetSectorRelatedQuests
FunctionAstralGetUnits
FunctionAstralIsSectorKnownForGroup
FunctionAstralIsSectorKnownForPlayer


CategoryLuaApi CategoryFunction CategoryAstralLua

На главную