GE Lua Documentation

Press F to search!

playPath

Definition


-- @/lua/ge/extensions/core/paths.lua:272

local function playPath(path, offset, initData)
  local initData = initData or {}
  initData.useJsonVersion = true
  initData.hasIntro = true
  initData.path = path
  initData.offset = offset or 0
  initData.reset = initData.reset or (function(this) end)
  initData.getNextPath = initData.getNextPath or (function(this) return initData.path end)

  core_camera.setByName(0, "path", false, initData)
end

Callers

@/lua/ge/extensions/flowgraph/modules/cameraModule.lua
  --local path = core_paths.loadPath(self.pathName)
  core_paths.playPath(path, 0, initData)
@/lua/ge/extensions/freeroam/crashCamMode.lua
  end
  core_paths.playPath(path, 0, initData)
end
@/lua/ge/extensions/gameplay/rally/transcripts/entry.lua
  log('D', logTag, 'playing camPath')
  core_paths.playPath(cam_path)
end
@/lua/ge/extensions/gameplay/rally/cameraPathPlayer.lua
  log('D', logTag, string.format('playing camPath buffer_before=%f, buffer_after=%f, height_offset=%f, fov=%f, playback_rate=%fkph', metersBefore, metersAfter, heightOffset, fov, playbackRateKph))
  core_paths.playPath(cam_path)
end
@/lua/ge/extensions/editor/scriptAIEditor.lua
    end
    core_paths.playPath(path)                                                     -- Execute the camera path.
  end
@/lua/ge/extensions/editor/camPathEditor.lua

  core_paths.playPath(M.currentPath, nil)
@/lua/ge/extensions/freeroam/bigMapMode.lua
  ui_visibility.set(false)
  core_paths.playPath(camPath, 0, initData)
  if transitionActive == 1 then
@/lua/ge/extensions/career/modules/vehiclePerformance.lua
      gameplay_drag_dragBridge.startDragRaceActivity()
      core_paths.playPath(core_paths.loadPath("/levels/west_coast_usa/camPaths/drag_pi_1.camPath.json"), 0)
      onPerformanceTestStarted(true)
    if data.triggerName == "dragStageTrigger" then
      core_paths.playPath(core_paths.loadPath("/levels/west_coast_usa/camPaths/drag_pi_2.camPath.json"), 0)
    elseif data.triggerName == "drag60ftTrigger" then
    elseif data.triggerName == "drag60ftTrigger" then
      core_paths.playPath(core_paths.loadPath("/levels/west_coast_usa/camPaths/drag_pi_3.camPath.json"), 0)
    elseif data.triggerName == "dragTestTrigger2" then
    elseif data.triggerName == "dragTestTrigger2" then
      core_paths.playPath(core_paths.loadPath("/levels/west_coast_usa/camPaths/drag_pi_4.camPath.json"), 0)
    elseif data.triggerName == "dragTestTrigger3" then
    elseif data.triggerName == "dragTestTrigger3" then
      core_paths.playPath(core_paths.loadPath("/levels/west_coast_usa/camPaths/drag_pi_5.camPath.json"), 0)
    end
@/lua/ge/extensions/editor/perfProfiler.lua
    function()
      core_paths.playPath(core_paths.loadPath(file), 0, initData)
      return true
      test_util_fpsCamRecorder.start({sampleDuration = sampleDuration})
      core_paths.playPath(core_paths.loadPath(file), 0, initData)
      return true
@/lua/ge/extensions/career/modules/playerDriving.lua
    end
    core_paths.playPath(camPath, 0, initData)
  end