onActivityIndexVisible
Definition
-- @/lua/ge/extensions/gameplay/crawl/general.lua:317
local function onActivityIndexVisible(data)
if not data then
if M.activeTrail and not M.activeTrail.isFromMission then
local activeCrawlerId = gameplay_crawl_utils.getActiveCrawlerId()
if not activeCrawlerId then
clear(true)
end
end
if not M.activeTrail then
gameplay_crawl_utils.clearMarkers()
end
return
end
if M.activeTrail then
return
end
if data.type == "crawl" then
local trail = gameplay_crawl_saveSystem.getTrailById(data.trailId)
if trail then
local veh = be:getPlayerVehicle(0)
if veh then
setupCrawl(trail, veh, false)
end
local path = deepcopy(gameplay_crawl_saveSystem.getPathById(trail.pathId))
if trail.pathReversed then
path.nodes = arrayReverse(path.nodes)
end
gameplay_crawl_utils.setupCrawlMarkers(path)
end
end
end
Callers