GE Lua Documentation

Press F to search!

getLastRecoveryCheckpoint

Definition


-- @/lua/ge/extensions/gameplay/crawl/utils.lua:1381

local function getLastRecoveryCheckpoint(crawlerId)
  if not crawlerId then
    return nil
  end

  local state = crawlStates[crawlerId]
  if not state or not state.active then
    return nil
  end

  return state.lastRecoveryCheckpoint
end

Callers

@/lua/ge/extensions/flowgraph/nodes/gameplay/crawl/getCrawlData.lua
  local data = self.bridge.getCrawlRuntimeData()
  local recoveryCheckpoint = self.bridge.getLastRecoveryCheckpoint()
@/lua/ge/extensions/gameplay/crawl/flowgraphBridge.lua

  return gameplay_crawl_utils.getLastRecoveryCheckpoint(activeCrawlerId)
end