READ IN a piston state (NOT SET a piston state)


#1

Most of us are familiar with setting the state of a piston…
Is it possible to read [or assign to a var] the state of the current piston or read the state of another piston?

A textual example:

  • read state of current piston (and eg do something)
  • set state to something
  • wait
  • loop

Note: I do not want to keep track via a var or other means; I want to read the state real-time if possible.

If so, an example will be appreciated.

Thanks
J


#2

not possible today. to suggest this feature please post here:

https://community.webcore.co/c/Meta/Feat-reqs


#3

Can’t you set the piston state that you want to reference to a globalvariable? Those should be available to all pistons in that instance of webcore.


#4

One could, but as I stated it is not something I want to do…
Consider this: 100 pistons = 100 global variables; the ability to real-time read a status is the way to go.
I will follow @bangali’s advise & add a feature request.

J