Tidy up and organise several debugPrints better

This commit is contained in:
Jim Shield
2025-06-20 18:03:08 +01:00
parent 9fbf2f2211
commit 4da4cbfc15
8 changed files with 63 additions and 45 deletions

View File

@@ -54,14 +54,14 @@ function makeDistVehicle(data, radius, onEnter, onExit)
onEnter = function()
vehicle = makeVeh(data.model, data.coords)
if onEnter then
debugPrint("makeDistVehicle onEnter running")
debugPrint("^6Bridge^7: ^4makeDistVehicle ^3onEnter^7() ^2running^7")
onEnter(vehicle)
end
end,
onExit = function()
deleteVehicle(vehicle)
if onExit then
debugPrint("makeDistVehicle onExit running")
debugPrint("^6Bridge^7: ^4makeDistVehicle ^3onExit^7() ^2running^7")
onExit(vehicle)
end
end,