This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
jakemg's profile picture

2 targs ?

Started by jakemg, 18 June 2013 - 04:45 PM
jakemg #1
Posted 18 June 2013 - 06:45 PM
Okay so i need an x number for how far it travels and why for the current Y coord the player is at
here is what i have for x

tArgs = { ... }
local x = tonumber(tArgs[1] or "")
while not x do
	    print("Need a distance to travel in number form")
	    x = tonumber(read())
end

but how do i do get a second targ
Kingdaro #2
Posted 18 June 2013 - 07:47 PM
Think. If tArgs[1] gets the first argument, what would get the second?