i think i know where the problem is,
to simplify things i'm working on improving the lua API .. (might rel those improvments soon before the actual build 014 update)
as part of the improvments i thought about the following changes:
First , a couple of naming changes to make things clearer - instead of "reading type", i'll use "probe" , so each sensor can have 1 or more probes. (example for Probe is "EU Storage" probe. (Hierarchy: Sensor --> Probe --> Reading Example: "myReactor"-->"Reactor"-->"heat" )
from the new lua API:
--[[ input: side - controller attached side ( can be retrieved using sensors.getController()) sensor - name of the remote sensor ( the name that was set on the sensor GUI, Default: "Sensor") probe - the probe name (eg. "EUStorage", "Reactor", etc..) output: a table containing all available targets in range that applicable to the specific sensor type & probe ]]-- getAvailableTargets(side,sensor,probe)
i'm thinking of adding a 4th parameter - Range - which can be between 1 and maxRange for this sensor. (max range would probably be <= 10 to prevent misuse)


This topic is locked










