1
Mods / Re: [0.97a] Random Assortment of Things
« on: December 10, 2024, 02:46:11 PM »
It has been almost a year since I originally tried to summon(cheat) in extra RAT special stations, specifically the domain refurbishment one, and the construction station as well. I failed to figure it out last time, gave up. Tried again, and can summon said stations, but interacting with them only has a "Leave" option, so they are still useless X)
runcode PlanetAPI star = ((StarSystemAPI) $loc).getStar(); if (star != null) { $loc.addCustomEntity(null, null, "rat_refurbishment_station", "neutral").setCircularOrbitPointingDown(star, VectorUtils.getAngle(star.getLocation(), $playerFleet.getLocation()), MathUtils.getDistance(star.getLocation(), $playerFleet.getLocation()), 180f); }
that will spawn one in, (and give you discovery exp) but it is unusable. Anyone with any ideas on why it doesn't work? I'm sorry if it is something really simple and I'm overlooking it, but my coding knowledge is functionally none (this was code I copied from people figuring stuff out in the console commands replies, and finding the custom entities names in the RAT mod folders)
runcode PlanetAPI star = ((StarSystemAPI) $loc).getStar(); if (star != null) { $loc.addCustomEntity(null, null, "rat_refurbishment_station", "neutral").setCircularOrbitPointingDown(star, VectorUtils.getAngle(star.getLocation(), $playerFleet.getLocation()), MathUtils.getDistance(star.getLocation(), $playerFleet.getLocation()), 180f); }
that will spawn one in, (and give you discovery exp) but it is unusable. Anyone with any ideas on why it doesn't work? I'm sorry if it is something really simple and I'm overlooking it, but my coding knowledge is functionally none (this was code I copied from people figuring stuff out in the console commands replies, and finding the custom entities names in the RAT mod folders)