GE Lua Documentation

Press F to search!

getStat

Definition


-- @/=[C]:-1
function getStat(...)

Callers

@/lua/ge/extensions/gameplay/drift/statistics.lua

local function getStat(name)
  return gameplay_statistic.metricGet(name) and gameplay_statistic.metricGet(name).value or 0
local function setNewMaxStat(name, value)
  local stat = getStat(name)
  if value > stat then gameplay_statistic.metricSet(name, value) end