Skip to content

Commit

Permalink
Add spawn ship utility to empty scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
Xansta committed Nov 9, 2023
1 parent 8155506 commit 547d421
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/scenario_10_empty.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

--- Scenario
-- @script scenario_10_empty

require("spawn_ships_scenario_utility.lua")
function init()
--SpaceStation():setPosition(1000, 1000):setTemplate('Small Station'):setFaction("Human Navy"):setRotation(random(0, 360))
--SpaceStation():setPosition(-1000, 1000):setTemplate('Medium Station'):setFaction("Human Navy"):setRotation(random(0, 360))
Expand All @@ -25,7 +25,11 @@ function init()
local sun1 = Planet():setPosition(5000, 15000):setPlanetRadius(1000):setDistanceFromMovementPlane(-2000):setPlanetAtmosphereTexture("planets/star-1.png"):setPlanetAtmosphereColor(1.0, 1.0, 1.0)
planet1:setOrbit(sun1, 40)
moon1:setOrbit(planet1, 20.0)
mainGMButtons()
end

function mainGMButtons()
clearGMFunctions()
addGMFunction(
_("buttonGM", "Random asteroid field"),
function()
Expand Down Expand Up @@ -62,6 +66,7 @@ function init()
end
end
)
addGMFunction("+Spawn Ship(s)",spawnGMShips)
end

function cleanup()
Expand Down

0 comments on commit 547d421

Please sign in to comment.