How to use toggleEventEnabled:
This simple Lightbulb will help you understand toggleEventEnabled.
Place the bulb, any brick you want.
Place the switch, any brick you want.
On the lightbulb, call it LBulb.
On the switch, call it LSwitch.
On the switch, have these events (note that the number at the front is the event number):
0 [ticked] onActivate>NAMED BRICK[LBulb]>setLight>Player's Light.
1 [unticked] onActivate>NAMED BRICK[LBulb]>setLight>None
2 [ticked] onActivate>self>toggleEventEnabled>[here goes the event numbers you want toggled (switched from ticked to unticked), in this case it is 0 1 (use a space to separate)].
Any questions, feel free to ask.
If this is in the wrong section, please move. Thanks.