Quote:
|
Originally Posted by Profit
Thanks DB
I'm looking at the If statements now, but really need an example to continue.
|
For future reference, it's actually much simpler. :P
(Button_object).Activated=(X==Y)
(Button_object)'s OnActivate event triggers if X=Y. Otherwise, the OnDeActivate triggers. Just put the scripts into each event.
It's usually slightly more complicated than that (OnActivate won't trigger if Activated=true already), but in this case we don't need that since we want the change state to correspond directly to the true/false value at all times.