Add files

This commit is contained in:
Matt Blunt
2016-02-07 18:20:06 +00:00
parent d63007f101
commit c0673612b1
14 changed files with 2204 additions and 0 deletions

19
starNav_goto Normal file
View File

@@ -0,0 +1,19 @@
if not starNav then
if not os.loadAPI("starNav") then
error("could not load starNav API")
end
end
local tArgs = {...}
if #tArgs == 3 or #tArgs == 4 then
for i = 1, #tArgs do
if tonumber(tArgs[i]) then
tArgs[i] = tonumber(tArgs[i])
else
error("argument "..i.." must be a valid coordinate")
end
end
print(starNav.goto(tArgs[1], tArgs[2], tArgs[3], tArgs[4]))
else
error("arguments must be 3 or 4 numbers")
end