fireair 0 Posted September 25, 2017 Share Posted September 25, 2017 heres the error Quote Link to post Share on other sites
0 Molinko 43 Posted September 25, 2017 Share Posted September 25, 2017 The screenshot resolution is hard to read. Could you post the full code in 'code' tags? Quote Link to post Share on other sites
0 fireair 0 Posted September 25, 2017 Author Share Posted September 25, 2017 2 minutes ago, Molinko said: The screenshot resolution is hard to read. Could you post the full code in 'code' tags? local component = require("component") local excavator = component.ie_excavator local onoff = component.ie_excavator.isActive() local on = component.ie_excavator.setEnabled(true) local excavators = {} local stateIndex = 1 for address in component.list("ie_ex") do excavators[stateIndex]=address print (excavators[stateIndex]) print (onoff) stateIndex = stateIndex+1 excavators.on() end here u go Quote Link to post Share on other sites
0 Gorzoid 10 Posted September 25, 2017 Share Posted September 25, 2017 excavators.on isnt a function did you mean to use component.invoke/component.proxy Quote Link to post Share on other sites
0 fireair 0 Posted September 26, 2017 Author Share Posted September 26, 2017 i did could u please show me how that's done? Quote Link to post Share on other sites
0 Gorzoid 10 Posted September 26, 2017 Share Posted September 26, 2017 component.invoke(address, "setEnabled", true) Or component.proxy(address).setEnabled(true) Quote Link to post Share on other sites
0 fireair 0 Posted September 26, 2017 Author Share Posted September 26, 2017 ok thanks very much Quote Link to post Share on other sites
heres the error
Link to post
Share on other sites