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

i wondered how to make relays actully work


...what's with all of the new people

im not new i just never bothered to figure it out

Badspot should make a topic called" If you are new here Click here" and have the basics w/rules.

The brick will call onRelay to all possible adjacent bricks.
Example, you have a 1x1x5 next to a pile of 15 1x1fs north of the 1x1x5. If you make the 1x1x5 fire a relay north, it will call onRelay on all 15.

ok dude, stop spamming the general discussion and put all your stuff in one post and half the stuff belongs in the help section

Dude find an event teacher such as straton on irc he taught me

Badspot needs a better Tutorial.

This should be in the HELP section noob.

This belongs in the Help section

im not new i just never bothered to figure it out
You are too.

Relays work by making things do events on the relay (i.e. can be used to make bricks flash on their own, make EKG sounds [beep...beep...beep], and a bunch of other things)

I have no problem teaching people things like this, just find me in my server at some point.

Here's an example.

We have two bricks, right?
One is named "trigger" and one is named "rocketShooter"

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

For "rocketShooter" I put these events:
onRelay>self>spawnProjectile  0 5 15 Gravity Rocket 0 0 0

This makes it so when you click "trigger", it'll fire a relay to rocketShooter which has an event that tells it to fire a rocket when it gets a relay.
"trigger" fires a relay to "rocketShooter" and "rocketShooter" then fires a rocket.