setSuspectTimer
Definition
-- @/lua/ge/extensions/gameplay/police.lua:318
local function setSuspectTimer(time) -- sets the time until the next suspect will be queued
local coef = policeVehs[be:getPlayerVehicleID(0)] and 1 or 2 -- longer timer if player is not police
suspectTimer = time or (lerp(suspectTimerDelay, 0, vars.suspectFrequency) + random(15)) * coef -- time until next suspect gets queued
end
Callers
@/lua/ge/extensions/gameplay/police.lua
if suspectTimer == math.huge and not suspectActive then
setSuspectTimer()
end