VE Lua Documentation

Press F to search!

setPlanets

Definition


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

local function setPlanets(p)
  table.clear(planets)
  table.clear(planetTimers)
  for i = 1, #p - 2, 3 do
    table.insert(planets, p[i].x)
    table.insert(planets, p[i].y)
    table.insert(planets, p[i].z)
    table.insert(planets, p[i + 1])
    table.insert(planets, p[i + 2])
  end
  obj:setPlanets(planets)
end

Callers

@/lua/ge/extensions/flowgraph/nodes/environment/simplePlanet.lua
  if self.vehicle then
    self.vehicle:queueLuaCommand("obj:setPlanets({})")
    self.vehicle = nil

  local command = 'obj:setPlanets({'
  command = command .. (pos.x)..','..(pos.y)..','..(pos.z)..','
@/lua/ge/extensions/gameplay/forceField.lua
    local veh = be:getObject(i)
    veh:queueLuaCommand("obj:setPlanets({})")
  end

  local command = string.format('obj:setPlanets({%f, %f, %f, %d, %f})', center.x, center.y, center.z, planetRadius, mass * vehicleSizeFactor * forceMultiplier)
@/lua/ge/extensions/flowgraph/nodes/environment/planet.lua
  if self.veh then
    self.veh:queueLuaCommand("obj:setPlanets({})")
    self.veh = nil

  local command = 'obj:setPlanets({'
  command = command .. (self.pinIn.position.value[1] or 0)..','..(self.pinIn.position.value[2] or 0)..','..(self.pinIn.position.value[3] or 0)..','
@/lua/ge/extensions/gameplay/discover/discover_037.lua
          local planetRadius = 5
          local command = string.format('obj:setPlanets({%f, %f, %f, %d, %f})', worldPoint.x, worldPoint.y, worldPoint.z, planetRadius, mass * vehicleSizeFactor * 1)
            end
            be:queueAllObjectLua("obj:setPlanets({})")
          end)
@/lua/ge/extensions/flowgraph/nodes/environment/directionalGravity.lua
  if veh then
    veh:queueLuaCommand("obj:setPlanets({})")
  end

  local command = 'obj:setPlanets({'
  command = command .. (origin.x) .. ',' .. (origin.y) .. ',' .. (origin.z) .. ','
@/lua/vehicle/beamstate.lua
      delPlanetI(i)
      obj:setPlanets(planets)
      break
          delPlanetI(i)
          obj:setPlanets(planets)
        else
  table.insert(planets, mass)
  obj:setPlanets(planets)
end
  end
  obj:setPlanets(planets)
end
      pEnd = pEnd - 1
      obj:setPlanets(planets)
    else
@/lua/ge/extensions/core/funstuff.lua
  local planetRadius = 5
  local command = string.format('obj:setPlanets({%f, %f, %f, %d, %f})', worldPoint.x, worldPoint.y, worldPoint.z, planetRadius, mass * vehicleSizeFactor * 1)
    end
    be:queueAllObjectLua("obj:setPlanets({})")
  end)
@/lua/vehicle/extensions/core/booster.lua
  if #planets > 0 then
    print("obj:setPlanets(" .. dumps(planets) .. ")")
  end
  end
  obj:setPlanets(planets)
end