onVehicleDestroyed
Definition
-- @/lua/ge/extensions/gameplay/crawl/general.lua:376
local function onVehicleDestroyed(vehId)
if M.activeTrail and not (M.activeTrail.isFromMission) then
clear(true)
end
end
Callers
@/lua/vehicle/extensions/tech/GPS.lua
local function onVehicleDestroyed(vid)
for sensorId, _ in pairs(GPSs) do
@/lua/ge/extensions/gameplay/drag/general.lua
local function onVehicleDestroyed(vehicleId)
if gameplayContext == "freeroam" and dragData and dragData.isStarted then
@/lua/ge/extensions/gameplay/traffic.lua
local function onVehicleDestroyed(id)
removeTraffic(id)
@/lua/vehicle/extensions/tech/powertrainSensor.lua
local function onVehicleDestroyed(vid)
for sensorId, _ in pairs(powertrains) do
@/lua/ge/extensions/freeroam/specialTriggers.lua
local function onVehicleDestroyed(vehId) -- clears vehicle id from tables
if not M.active then return end
if not active then
onVehicleDestroyed(vehId)
end
@/lua/ge/extensions/editor/veMain.lua
local function onVehicleDestroyed()
vEditor.vehicle = nil
@/lua/ge/extensions/flowgraph/nodes/vehicle/onVehicleDestroyed.lua
function C:onVehicleDestroyed(id)
self.info.id = id
@/lua/ge/extensions/core/vehicle/mirror.lua
local function onVehicleDestroyed(vid)
end
@/lua/ge/extensions/core/vehicles.lua
local function onVehicleDestroyed(vid)
for i, coupler in ipairs(M.attachedCouplers) do
@/lua/ge/extensions/career/modules/inspectVehicle.lua
local function onVehicleDestroyed(vehId)
if not testDriveVehInfo then return end
@/lua/ge/extensions/core/trailerRespawn.lua
local function onVehicleDestroyed(vehId)
unregisterVehicle(vehId)
@/lua/vehicle/extensions/tech/mesh.lua
local function onVehicleDestroyed(vid)
for sensorId, _ in pairs(meshes) do
@/lua/ge/extensions/gameplay/util/crashDetection.lua
local function onVehicleDestroyed(vehId)
if trackedVehIds[vehId] then
@/lua/ge/extensions/freeroam/dragRace.lua
local function onVehicleDestroyed(id)
if playerVehicle and playerVehicle:getID() == id then
@/lua/ge/extensions/gameplay/drift/stuntZones/hitPole.lua
function C:onVehicleDestroyed(vehId)
if self.activeData.veh and vehId == self.activeData.veh:getId() then
@/lua/ge/extensions/tech/utils.lua
local function onVehicleDestroyed(vid)
if vid ~= be:getPlayerVehicleID(0) then return end
@/lua/vehicle/extensions/tech/idealRADARSensor.lua
local function onVehicleDestroyed(vid)
for sensorId, _ in pairs(idealRADARs) do
@/lua/ge/extensions/gameplay/drift/stuntZones/nearPole.lua
function C:onVehicleDestroyed(vehId)
if self.activeData.veh and vehId == self.activeData.veh:getId() then
@/lua/vehicle/extensions/tech/advancedIMU.lua
local function onVehicleDestroyed(vid)
for sensorId, _ in pairs(advancedIMUs) do
@/lua/ge/extensions/gameplay/parking.lua
local function onVehicleDestroyed(id)
if parkedVehData[id] then
@/lua/ge/extensions/gameplay/statistic.lua
local function onVehicleDestroyed(vid)
if currentPlayerVehicleId==vid then
@/lua/ge/extensions/core/vehicleActivePooling.lua
local function onVehicleDestroyed(vehId)
for _, pool in pairs(pools) do
@/lua/ge/extensions/career/modules/vehicleDeletionService.lua
local function onVehicleDestroyed(vehId)
clearFlags(vehId)
@/lua/ge/extensions/tech/lidarTest.lua
-- If a vehicle is destroyed, remove any attached sensors.
local function onVehicleDestroyed(vid)
print("LiDAR sensor test: vehicle destroyed and test sensor removed")
@/lua/ge/extensions/tech/sensors.lua
local function onVehicleDestroyed(vid)
if Research then
@/lua/ge/extensions/gameplay/drift/stuntZones.lua
local function onVehicleDestroyed(vehId)
for _, stuntZone in ipairs(stuntZones) do
if stuntZone.onVehicleDestroyed then
stuntZone:onVehicleDestroyed(vehId)
end
@/lua/vehicle/extensions/tech/roadsSensor.lua
local function onVehicleDestroyed(vid)
for sensorId, _ in pairs(roadsSensors) do
@/lua/ge/extensions/tech/ultrasonicTest.lua
-- If a vehicle is destroyed, remove any attached sensors.
local function onVehicleDestroyed(vid)
print("ultrasonic sensor test: vehicle destroyed and test sensor removed")
@/lua/ge/extensions/core/checkpoints.lua
local function onVehicleDestroyed(vid)
-- local vehicle = getObjectByID(vid)
@/lua/ge/extensions/core/camera.lua
local function onVehicleDestroyed(vid)
delVehicleData(vid)