Author Topic: Help with Wrench Event Triggers.  (Read 761 times)

Can somebody please provide me with a guide? I cannot figure out how to create triggers anymore with the new wrench event system. Thanks.


I kinda sorta meant create one? I will be more specific next time.

I'm going to assume by "trigger" you mean "click and something happens".

For this it'll be a simple light that turns off after a second.

1. Make your light brick.
2. Wrench it, open the events GUI.
3. To make it work on click, we'll put "onActivate" in the input.
4. Target is the object it affects, which in this case should be self (the brick).
5. Output event: setLight, with "player's light" as the parameter.

So now you have:
onActivate -> self -> setLight -> player's light
Now we'll make it turn off.
1. Open the GUI again.
2. Add another onActivate -> setLight, but this time, set the parameter to "NONE".
3. Way on the left is a box titled "delay". Set this to 1000.

Voila. You now have a light that turns on when you click it.

Hopefully you can use this to do other crap with events.