Headlights also restore when vehicle is respawned

This commit is contained in:
2025-10-09 00:05:04 +01:00
parent bdedd81046
commit ba484d8df2
3 changed files with 34 additions and 15 deletions
+1 -3
View File
@@ -84,12 +84,9 @@ M.turnStarter = turnStarter
M.releaseStarter = releaseStarter
local function restoreIgnition(level)
print("Restoring ignition to " .. level)
if level == ignitionAcc then
print("Setting ignition to acc")
setIgnitionAcc()
elseif level == ignitionOn then
print("Setting ignition to on")
setIgnitionOn()
end
end
@@ -108,6 +105,7 @@ local function updateGFX(dt)
myTimer = myTimer + dt
if myTimer > 1 then
restoreIgnition(curIgnitionPos)
requestToReset = false
myTimer = 0
end
end