Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --all scrolling related to slaved ships.
- for i=1,#slaveShips do
- if slaveShips[i] ~= nil then
- local scrollS = slaveShips[i]
- if scrollS ~= nil then --If this ship is null, don't bother playing with it.
- local pos = scrollS.Position
- if slaveToX[i] == true then
- pos["x"] = pos["x"] + (floatScrollX)
- end
- if slaveToY[i] == true then
- pos["y"] = pos["y"] + (floatScrollY)
- end
- if slaveToZ[i] == true then
- pos["z"] = pos["z"] + (floatScrollZ)
- end
- scrollS.Position = pos
- slaveShips[i] = scrollS
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment