| Blockland Forums > Help |
| how do i use toggleeventenabled? |
| (1/2) > >> |
| Radeau:
ok so i want to make a light turn off and on with the same button. i know i can use toggleeventenabled to do that, but how? one of my friends briefly explained it to me, but i didnt get it very well. can one of you guys give me a detailed tutorial? this would help me out a lot, thanks |
| oromis:
{0}onactivate namedbrick setlight yellow light {1}onactivate namedbrick setlight none {2}onactivate self toggle-events-enabled [0 1] |
| SteveyHell:
It does work. Thanks for codes. =D :cookie: :iceCream: |
| Makingblah:
If you set the check box beside the event, the event wont work. When you use toggle event enables, it toggles this and puts it to true. Basicly: (- is unchecked and + is checked) + OnActivate>Self>SetLight>Players Light - OnActivate>Self>SetLight>NONE + OnActivate>Self>ToggleEventEnabled [ 0 1 ] (sperate with spaces) |
| Radeau:
oooooooooo! awesome i get it now thanks for your help guys! |
| Navigation |
| Message Index |
| Next page |