Advertisement
guitarplayer616

setCoords

May 21st, 2017
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. local tArgs = {...}
  2. returning = false
  3.  
  4. function Initiate()
  5.     local h = fs.open("info","w")
  6.     h.writeLine("x="..x..";")
  7.     h.writeLine("y="..y..";")
  8.     h.writeLine("z="..z..";")
  9.     h.writeLine("f="..f..";")
  10.     h.writeLine("returning="..returning..";")
  11.     h.close()
  12. end
  13.  
  14. if #tArgs == 4 then
  15.     x=tArgs[1]
  16.     y=tArgs[2]
  17.     z=tArgs[3]
  18.     f=tArgs[4]
  19. elseif #tArgs == 3 then
  20.     error("setCoords [x] [y] [z] [f]")
  21. else
  22.     x, y, z, f = 0, 0, 0, 0
  23. end
  24.  
  25. Initiate()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement