Author Topic: Loop Checker Event thing  (Read 392 times)

I need an event where it checks for a supposed relay, and then if there is one it stops the relay and does a certain action when that relay stops. When that action is complete, then it restarts the relay. Say, for my specific need, I need it to stop a sound (not with music block) from relaying and then when the relay stops, it plays the new sound. After that new sound plays once, it starts the relay over again.
If this has already been made, please give me a link.
and if its do-able with events, its gotta be hard.

Onactivate-self-firerelay.
OnRelay-Self-FireRelay

I know how to do a relay,
I just want to know how to make it stop and then make a sound play. Then make it start.
(Without making the new sound overlap the relay of course.)

I don't think you can detect a loop tied to a specific brick... nor do I know how relays work exactly script wise, so I can't be much help here.
« Last Edit: June 09, 2012, 02:24:22 AM by Lugnut1206 »

onrelay>self>firerelay
onrelay>self>playsound
input>self>toggleeventsenabled[1 3 4 5]
onrelay>self>playsound
onrelay>self>firerelay
onrelay>self>toggleeventsenabled[1 3 4 5]

last three are off to start with

The only problem is that it'd overlap the occuring loop.
But I may be able to go across that.

The only problem is that it'd overlap the occuring loop.
But I may be able to go across that.
change relays to printcounts then, the first two lines are supposed to be the loop with the main sound