Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- arg = { ... }
- direction = arg[1]
- tosend = false
- print(direction)
- if direction == "down" then
- tosend = "move.down"
- elseif direction == "up" then
- tosend = "move.up"
- elseif direction == "north" then
- tosend = "move.north"
- elseif direction == "south" then
- tosend = "move.south"
- elseif direction == "west" then
- tosend = "move.west"
- elseif direction == "east" then
- tosend = "move.east"
- end
- if (tosend ~= false) then
- print("Sending "..tosend)
- modem.transmit(targetChannel,myChannel,tosend)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement