GE Lua Documentation

Press F to search!

resumeCrawlTimer

Definition


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

local function resumeCrawlTimer(crawlerId)
  if not crawlerId then
    return false
  end

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

  if state.crawlStarted then
    return true
  end

  state.crawlStarted = true
  state.events.crawlStarted = true
  gameplay_crawl_display.showStartedCrawlMessage()
  if state.crawlerData then
    gameplay_crawl_display.showPointsMessage(state.crawlerData.points or 0)
  end

  return true
end

Callers

@/lua/ge/extensions/gameplay/crawl/flowgraphBridge.lua
    if state and state.active and not state.crawlStarted then
      if gameplay_crawl_utils.resumeCrawlTimer(activeCrawlerId) then
        return true