GE Lua Documentation

Press F to search!

setPrecipitation

Definition


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

-------------------------------------------------------------
--------------------- Precipitation -------------------------
-------------------------------------------------------------

local function setPrecipitation(rainDrops)
  local rainObj = getObject("Precipitation")
  if rainObj and rainDrops then
    rainObj.numOfDrops = rainDrops
  end
end

Callers

@/lua/ge/extensions/core/environment.lua
    end
    setPrecipitation(state.numOfDrops)
    setGravity(state.gravity)