r/ComputerCraft • u/Think_Measurement572 • Oct 16 '25
Is it possible to put variable in rednet.send?
I'm trying to make a turtle remote so I can make many turtles separatly from using only 1 remote via ids
39
Upvotes
7
u/IJustAteABaguette Oct 16 '25
yes, you can just directly send the character using rednet by recplaing the string in the send() function with the variable name. Something like rednet.send(1,character) should work
Note: you can do this with any function in lua.
15
u/Bright-Historian-216 Oct 16 '25
yes, that's how programming works. in lua at least, you can put a variable wherever you need a number or a string or a table or anything else