GE Lua Documentation

Press F to search!

isVehTracked

Definition


-- @/lua/ge/extensions/gameplay/util/crashDetection.lua:730

local function isVehTracked(vehId)
  return trackedVehIds[vehId] ~= nil
end

Callers

@/lua/ge/extensions/gameplay/crashTest/scenarioManager.lua
local function tryAddVehicleToCrashDetection(vehId)
  if gameplay_util_crashDetection.isVehTracked(vehId) then
    return
@/lua/ge/extensions/gameplay/drift/drift.lua
local function tryTrackDriftVehForCrash()
  if vehId ~= nil and gameplay_drift_general.getContext() ~= "inAnotherMissionType" and not gameplay_util_crashDetection.isVehTracked(vehId) and vehId > -1 then
    gameplay_util_crashDetection.addTrackedVehicleById(vehId, crashDetectionSettings, "drift")