Blockland Forums > Help
on off event
bizolwig:
hello every one! I have just got blockland, haveing a blast so far. I'm beginning to play with events. I'm no programmer by any stretch of the imagination. So I'm starting out simple.
I want to make a block turn a light on and off. I got it to turn on, but I cant figure out how to get it to turn off and back on again. I got it to turn on then off. but then it just stays off... any help would be appreciated.
Klayboxx:
AHEM
(Check)On Activate>Self>SetLight>PlayerLight
(Check)On Activate>Self>Toggle event enabled>0 2
(Uncheck)On Activate>Self>SetLight>PlayerLight
Azimuth:
0 [X] onActivate -> <NAMED BRICK> -> setLight [NONE]
light
1 [ ] onActivate -> <NAMED BRICK> -> setLight [Player's Light]
light
2 [X] onActivate -> Self -> toggleEventEnabled 0 1
I assume you want to have a toggle light.
Azimuth:
--- Quote from: Klayboxx on August 02, 2009, 10:34:24 PM ---AHEM
(Check)On Activate>Self>SetLight>PlayerLight
(Check)On Activate>Self>Toggle event enabled>0 2
(Uncheck)On Activate>Self>SetLight>PlayerLight
--- End quote ---
That doesn't make sense. Please re-read what you posted.
Healbadbad:
--- Quote from: Klayboxx on August 02, 2009, 10:34:24 PM ---AHEM
(Check)On Activate>Self>SetLight>PlayerLight
(Uncheck)On Activate>Self>SetLight>PlayerLight
--- End quote ---
Orly? that sounds like an infilight to me