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

На главную


battleground.GetCheckpoints()

Выдаёт список контрольных точек баттлграунда (если аватар участвует в баттлграунде).

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

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

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

-- возвращаемое значение:
table - список (таблица, индексированная целыми числами начиная с 0) ObjectId, соответствующих контрольным точкам баттлграунда. Если есть соединенные контрольные точки, то в списке присутствует лишь одна из них (прилинкованную контрольную точку можно узнать с помоoью battleground.GetLinkedCheckpoint( objectId ) )

Пример:

local checkpoints = battleground.GetCheckpoints()
if checkpoints[0] != nil then
  LogInfo( "1st battleground checkpoint info: ", battleground.GetCheckpointInfo(checkpoints[0]) )
end

См. также:

battleground.GetCheckpointInfo( checkpointId ),

battleground.GetLinkedCheckpoint( checkpointId )

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

BattlegroundMarkId
CategoryBattleground
EnumBattlegroundRecapturablePlayerSpawnPlaceState
EventBattlegroundCheckpointAdded
EventBattlegroundCheckpointRemoved
EventBattlegroundCheckpointsChanged
EventBattlegroundCheckpointStateChanged
FunctionBattlegroundGetAvatarMark
FunctionBattlegroundGetCheckpointInfo
FunctionBattlegroundGetCheckpoints
FunctionBattlegroundGetCheckpointTeam
FunctionBattlegroundGetHeroesArenaQuitSpell
FunctionBattlegroundGetHeroesArenaStartStageSpell
FunctionBattlegroundGetLinkedCheckpoint
FunctionBattlegroundGetPlayerMark
FunctionBattlegroundIsCheckpoint


CategoryLuaApi CategoryFunction CategoryBattleground

На главную