Author Topic: [Event Tutorial] toggleEventEnabled  (Read 4955 times)

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.


I will make up more tutorials soon.

You don't have to give the light switch a name.

You don't have to give the light switch a name.
I know, but it keeps the system tidier.

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.



wee
Wtf, and stop typing in blue for forget sake.

On Topic:
Kinda pointless it was realy obvious how this event worked when I first saw it.

Wtf, and stop typing in blue for forget sake.

On Topic:
Kinda pointless it was realy obvious how this event worked when I first saw it.
I only wrote this because many people I know don't or didn't know how to use this.



I was thinking of doing something like this... hey Ethan want to team up?

I was thinking of doing something like this... hey Ethan want to team up?
No.  Ethan is my team member :C

I was thinking of doing something like this... hey Ethan want to team up?
Maybe. I made this last year, just bumped it.