toggleEventEnabled
toggleEventEnabled | 2? There is no third event.
If I understand you correctly this is what you want to happen.You probably want something else to happen but I used setlight to clear it up.The light will turn on 3 seconds after the brick is activatedThe light will stay on because there's no other event after line 1.
0 onActivate do_your_stuff_here0 onActivate Self setRayCasting false3000 onActivate Self setRayCasting true