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

На главную


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"

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


CategoryLuaApi CategoryFunction CategoryAstralLua

На главную