Closed shuangfas closed 10 months ago
Goggle link port by itself doesnt have getConfigInfo. This function exists in getConnected items.
I used my "print_r" function to print the results of getConnected, and it does have the functions the wiki talks about, but I don't know why I can't call them at all...
g = peripheral.find("goggle_link_port")
gg=g.getConnected()
print_r(gg)
gg.raycast(100,nil,false,true,false,true)
@shuangfas it didn't notify me as the issue was closed. Anyways, if you didn't yet solve this issue, getConnected returns a list of all connected goggles (can be more that one), so you need to gg[1].raycast(...)
No, man, your answer is wrong. The right one should be:
g = peripheral.find("goggle_link_port")
gg=g.getConnected()
print_r(gg)
for k, v in pairs(gg) do
ggg=v
break
end
print(ggg.type)
because: Even though your answer was wrong, I thank you very much!
ah, ye. i forgot that i use uuid for keys
main:
results: