Author Topic: How to Toggle Events  (Read 691 times)

So basically, I event something, like a lightswitch, so it turns the light on and off. Problem is, is that IDK how to toggle, so I'm just stuck with one light or the other. How do I toggle? It would also be good for toggling a car engine.

toggleEventEnabled is for this

  • onBlank > Blank > doBlank


1  [ ] onBlank > Blank > doOtherBlank

  • onBlank > Self > toggleEventEnabled (0 1)


This will make it turn on, then switch the events around so that it will turn off on the next trigger.

toggleEventEnabled is for this

0  [x] onBlank > Blank > doBlank

1  [ ] onBlank > Blank > doOtherBlank

2  [x] onBlank > Self > toggleEventEnabled (0 1)

This will make it turn on, then switch the events around so that it will turn off on the next trigger.
NoEdit
Apparently [x] makes a bullet. Whoops.