AndrewofDoom

Untitled

Jun 22nd, 2012
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. --all scrolling related to slaved ships.
  2. for i=1,#slaveShips do
  3. if slaveShips[i] ~= nil then
  4. local scrollS = slaveShips[i]
  5. if scrollS ~= nil then --If this ship is null, don't bother playing with it.
  6. local pos = scrollS.Position
  7. if slaveToX[i] == true then
  8. pos["x"] = pos["x"] + (floatScrollX)
  9. end
  10. if slaveToY[i] == true then
  11. pos["y"] = pos["y"] + (floatScrollY)
  12. end
  13. if slaveToZ[i] == true then
  14. pos["z"] = pos["z"] + (floatScrollZ)
  15. end
  16. scrollS.Position = pos
  17. slaveShips[i] = scrollS
  18. end
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment