Skip to content

Instantly share code, notes, and snippets.

Created December 27, 2012 18:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4390872 to your computer and use it in GitHub Desktop.
Save anonymous/4390872 to your computer and use it in GitHub Desktop.
function Space:SpawnShipTest(range)
ship = Space.SpawnShip("eagle_lrf", range, range)
ship:AddEquip("DRIVE_CLASS1")
ship:AddEquip("AUTOPILOT")
ship:AddEquip("WATER", 7)
targ = Game.player:GetNavTarget()
ship:AIFlyTo(targ)
Game.player:SetNavTarget(ship)
end
function Space:SpawnShipNearTest(range)
ship = Space.SpawnShipNear("eagle_lrf", Game.player, range, range)
ship:AddEquip("DRIVE_CLASS1")
ship:AddEquip("AUTOPILOT")
ship:AddEquip("WATER", 7)
targ = Game.player:GetNavTarget()
ship:AIFlyTo(targ)
Game.player:SetNavTarget(ship)
end
function Space:TestShip()
Game.player:SetShipType("caribou")
Game.player:AddEquip("AUTOPILOT")
Game.player:AddEquip("SCANNER")
Game.player:AddEquip("ATMOSPHERIC_SHIELDING")
Game.player:AddEquip("WATER", 600)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment