[quote="linkman2004":2lu2t9vl]I imagine you're probably not using the whole expression I mentioned. The "global('stuff') = " part is actually part of the expression, since the conditional operator checks that value and decides what value to return based on whether it meets the condition or not. Here's an example, just press space to toggle the value:Boolean Toggling
I hope this clears things up.
On the issue of the number is between thing, would you mind posting a CAP with the problem? It's hard to understand exactly what's wrong without one.[/quote:2lu2t9vl]
Yep.. Now its working right.
Are there more regualar expressions in construct ?
[quote:2lu2t9vl]in some cases you could use *-1 as a toggle if your number starts by being 1 or -1, like so:
Set value 'boolean' to "('boolean') * -1"
And treat 1 as ON and -1 as OFF.[/quote:2lu2t9vl]
This is also a good way, i will be using it also thank you.
The physic stuff that i'm talking about is toggled off in the bottom. I know this way will not work but i think you will understand what i am trying to do.
Next agenda is to have red player controlled by the computer.
Any tips on how i should randomly choose a puck and launch it over to the blue side ?