GE Lua Documentation

Press F to search!

getPrecipitation

Definition


-- @/lua/ge/extensions/core/environment.lua:544

local function getPrecipitation()
  local rainObj = getObject("Precipitation")
  local rainDrops
  if rainObj then
    rainDrops = rainObj.numOfDrops
  end
  return rainDrops
end

Callers

@/lua/ge/extensions/core/environment.lua

  local numOfDrops = getPrecipitation()
  res.numOfDrops = numOfDrops