GE Lua Documentation

Press F to search!

getCurrentLevelDragPath

Definition


-- @/lua/ge/extensions/gameplay/drag/saveSystem.lua:9

local function getCurrentLevelDragPath()
  local levelName = getCurrentLevelIdentifier()
  if not levelName then
    log('E', logTag, 'Could not determine current level')
    return nil
  end
  return '/levels/' .. levelName .. '/dragstrips/'
end

Callers

@/lua/ge/extensions/editor/dragRaceEditor/facilities.lua
M.saveAllFacilities = function()
  local levelPath = dragSaveSystem.getCurrentLevelDragPath()
  if not levelPath then
@/lua/ge/extensions/editor/dragRaceEditor/waypoints.lua

  local levelPath = dragSaveSystem.getCurrentLevelDragPath()
  if not levelPath then
@/lua/ge/extensions/editor/dragRaceEditor/lanes.lua

  local levelPath = dragSaveSystem.getCurrentLevelDragPath()
  if not levelPath then
@/lua/ge/extensions/gameplay/drag/saveSystem.lua
    -- Check if ID is a facility ID by trying to load facility file
    local levelPath = M.getCurrentLevelDragPath()
    local facility = nil
  local facilities = {}
  local levelPath = M.getCurrentLevelDragPath()
  if levelPath then
  local strips = {}
  local levelPath = M.getCurrentLevelDragPath()
  if levelPath then
@/lua/ge/extensions/editor/dragRaceEditor/strips.lua

  local levelPath = dragSaveSystem.getCurrentLevelDragPath()
  if not levelPath then