Author Topic: Relay events  (Read 3251 times)

What do relay events do?

they eat your mother.. >:)

Eh, the best way I can think of describing relay is as a signal almost.

If you fire a relay, you are sending a relay to whatever (direction or named brick), then on that brick you can have it do something when it receives that signal.

I hope that makes sense, I'm sure someone else can explain better, but I thought I would put a basic explanation in there.

Example:[33] OnActivate - Self - FireRelay
              [66]OnRelay - Self - PlaySound - exitWater
               [3000]OnRelay - Self - FireRelay

Okay basically imagine you're spawning a music brick with music. When you click send, that's like your FireRelay it starts a sequence that repeats a loop of a sound. If it were events it would look something like this:

OnBrickSend - Self - FireRelay
[33] OnRelay - Self - Play Loop - [MusicName]

Okay so say the loop is 30 seconds long the events would carry on like this:

[30000] OnRelay - Self - FireRelay

If you are needy of more detail just ask.

The time in the square brackets is measured in MiliSeconds Thats 1000ms : 1sec.

Eh, the best way I can think of describing relay is as a signal almost.

If you fire a relay, you are sending a signal to whatever (direction or named brick), then on that brick you can have it do something when it receives that signal.

I hope that makes sense, I'm sure someone else can explain better, but I thought I would put a basic explanation in there.
Lern2Re-read.


No; me. Look at the bolded text compared to original.
I talk to myself. Not crazy >.> no, not me, um yeah.


Thanks for the help both of you now I understand what a relay is.