Author Topic: OnLightOn/Off  (Read 1559 times)

is it really that hard to do it with events?

(make light brick)event:
1.(checked)-onactivate-self-setlight-(what light you want)
2.(unchecked)-onactivate-self-setlight-none
3.(checked)-onactivate-self-toggleevent-1
4.(checked)-onactivate-self-toggleevent-2

that will turn it on and off every time you click it.
PUT IT IN THAT ORDER!!!

Tip: You can put more than one number in the box for setEventEnabled, toggleEventEnabled and NiXiLL's shiftEventEnabled. Separate them by spaces to toggle two events at once.
Code: [Select]
onActivate -> Self -> ToggleEventEnabled -> [1 2]will toggle both at once.

Psst... He's talking about more than ifOn -> turnOff and ifOff -> turnOn.
He means like, checking if it's on, then doing a(n assumably) large number of events.

Even so,

Simple variable events would do.
well if you set the light to on, the light would be "on" so it would turn "off", and if it was "off" it would turn "on" and it would keep going, this is pointless to make, just use toggle event enabled, just 3 events. or about 8 in my opinon if you wanted to make it fancy. i will post a code

Code: [Select]
[0][On Activate][Disabled] - [Self] - [SetLight] - [PlayerLight]
[1][On Activate][Disabled] - [Self] - [Playsound] - [LightOn]
[2][On Activate][Disabled] - [Self] - [SetColor] - [White]
[3][On Activate][Disabled] - [Self] - [SetColorFX] - [Glow]
[4][On Activate][Enabled] - [Self] - [ToggleEventEnabled] - [1 2 3 5 6 7]
[5][On Activate][Enabled] - [Self] - [SetLight] - [None]
[6][On Activate][Enabled] - [Self] - [Playsound] - [LightOff]
[7][On Activate][Enabled] - [Self] - [SetColor] - [Black]
[8][On Activate][Enabled] - [Self] - [SetColorFX] - [None]