Author Topic: how do relays work?  (Read 1854 times)

Go to the bed room load Beta City and use the wrench on the subway lightswitch and go into events that provides a good example.

-Instructions-

I use relays for repeating sounds such as "zombiepain" to annoy the crap out of my friends. The way you said it is possible to do and does work, but you could also just do this.

Code: [Select]
OnActivate>[Named Brick]RocketShooter>SpawnProjectile> 0 5 15 Gravity Rocket 0 0 0
It is alot quicker to do it that way. Just thought I would make it simple for all the newbies reading this that didn't know how.

It is alot quicker to do it that way. Just thought I would make it simple for all the newbies reading this that didn't know how.
I use relays when I have groups of tasks.
Say I've got a set of bricks that I want to fire spears and show red lights. I make those bricks all "spearred" in brick name, then put onRelay events in.
Then do different for other groups.
Then I get my 'modem' and make it fire relays to all the groups.

-snip-

For "trigger", I put these events:
onActivate>(Named Brick)rocketShooter>fireRelay

-snip-

You forgot to put that you put fireRelay(what ever direction block is from the original block) because if you just left it as fire relay it would only fire the relay inside the block

Not sure how to explain it to you, but... here's an example of a relay loop. OnActivate Self FireRelay, OnRelay Self FireRelay.