lulighttec
Member
Hi Guys,
So I've been reading some threads about inverting zones through various methods, and I seem to remember Alexey posting that
should accurately invert ZoneWhatever, right? Then this code should toggle it, shouldn't it?
I would think so, but the problem is that when I try to use the objects this way, the value inexplicably jumps from 100 to 400, and in live controls under zone settings, the X size slider jumps all the way to the left. I don't really want to do things by index because if the index ever changes then my script will stop working, but other than that I have tried rewriting this a couple of different ways and this was the best I could think of. However, ALL of them gave the same result as this one. I'm stumped.
Anyone have any ideas?
So I've been reading some threads about inverting zones through various methods, and I seem to remember Alexey posting that
Code:
ZoneWhatever.SizeX= (-ZoneWhatever.SizeX)
Code:
OnClick:
ZoneWhatever.SizeX = (ZoneWhatever.SizeX * (-1))
Exit
Anyone have any ideas?