GE Lua Documentation

Press F to search!

getActiveCrawlerId

Definition


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

M.getActiveCrawlerId = function()
  for crawlerId, state in pairs(crawlStates) do
    if state and state.active then
      return crawlerId
    end
  end
  return nil
end

Callers

@/lua/ge/extensions/gameplay/crawl/flowgraphBridge.lua

local function getActiveCrawlerId()
  local allStates = gameplay_crawl_utils.getAllCrawlStates()

  local activeCrawlerId = getActiveCrawlerId()
  if activeCrawlerId then
M.resetCrawl = function()
  local activeCrawlerId = getActiveCrawlerId()
  if not activeCrawlerId then
M.getCrawlEndData = function()
  local activeCrawlerId = getActiveCrawlerId()
  if not activeCrawlerId then
M.getCrawlRuntimeData = function()
  local activeCrawlerId = getActiveCrawlerId()
  if not activeCrawlerId then
M.getActiveCrawlerId = function()
  return getActiveCrawlerId()
end
M.applyPenalty = function(penaltyType)
  local activeCrawlerId = getActiveCrawlerId()
  if not activeCrawlerId then
M.getLastRecoveryCheckpoint = function()
  local activeCrawlerId = getActiveCrawlerId()
  if not activeCrawlerId then
M.getLastRecoveryCheckpointIndex = function()
  local activeCrawlerId = getActiveCrawlerId()
  if not activeCrawlerId then
M.setRecoveryCheckpoint = function(checkpoint)
  local activeCrawlerId = getActiveCrawlerId()
  if not activeCrawlerId then
@/lua/ge/extensions/gameplay/crawl/general.lua
    if M.activeTrail and not M.activeTrail.isFromMission then
      local activeCrawlerId = gameplay_crawl_utils.getActiveCrawlerId()
      if not activeCrawlerId then