What Does "getSetVar" Do?
-
I never figured out how to use it.
-
It retrieves and sets a var at the same time. It retrieves the value that you set, so:
getSetVar("foo",1) = 1
-
@wacov said:
It retrieves and sets a var at the same time. It retrieves the value that you set, so:
getSetVar("foo",1) = 1
An easier way to understand it i find is it retrieves the var and then resets it. So have an ontouch box that sets the variable to 1 normally with getvar it retrieves the variable and thats it. getsetvar when the box isn't being touched it resets the variable to 0. that probably made no sense but still
-
It can be useful for other stuff; I used it alot in the toggle script.
-
I think a setVar controlled magnet uses it to reset itself.
Advertisement