VE Lua Documentation

Press F to search!

delPlanet

Definition


-- @/lua/vehicle/beamstate.lua:614

local function delPlanet(center, radius, mass)
  for i = 1, #planets - 4, 5 do
    if planets[i] == center.x and planets[i + 1] == center.y and planets[i + 2] == center.z and planets[i + 3] == radius and planets[i + 4] == mass then
      delPlanetI(i)
      obj:setPlanets(planets)
      break
    end
  end
end

Callers