trackVehReset
Definition
-- @/lua/ge/extensions/gameplay/crawl/utils.lua:1460
local function trackVehReset()
for crawlerId, state in pairs(crawlStates) do
if state and state.active and state.crawlerData then
local veh = state.crawlerData.dynamicData.vehObj
if veh then
-- Store current position to check against in next frame
-- This allows us to detect if the vehicle actually teleported
-- (since the hook is called before the teleport happens)
state.pendingTeleportCheck = true
state.teleportCheckPos = vec3(veh:getPositionXYZ())
end
end
end
end
Callers
@/lua/ge/extensions/freeroam/crashCamMode.lua
local function trackVehReset()
toggleActionCam(false)