Blockland Forums > Suggestions & Requests
Event: fireRelayBack
Kalphiter:
--- Quote from: Peejster on May 31, 2010, 02:08:53 PM ---Can be done with variables.
--- End quote ---
--- Quote from: Niliscro on May 30, 2010, 11:35:31 PM ---without the use of VCE conditionals
--- End quote ---
Niliscro:
--- Quote from: Peejster on May 31, 2010, 02:08:53 PM ---Can be done with variables.
--- End quote ---
Seriously, you people need to read.
--- Quote from: Loopyla1 on May 31, 2010, 11:46:28 AM ---Wouldn't Brick 2 fire a relay back to brick 1 first?
--- End quote ---
No, Brick 2 only sends a relay back to the most recent brick to send it one. So if it were:
Events for Brick 1:
[0] onActivate - [Brick 2] - [fireRelay]
[0] onRelay - [Self] - [playSound] [breakBrick]
Events for Brick 3:
[0] onActivate - [Brick 2] - [fireRelay]
[0] onRelay - [Self] - [playSound] [breakBrick]
Events for Brick 2:
[0] onActivate - [Self] - [fireRelayBack]
[0] onRelay - [Self] - [fakeKillBrick] [0 0 5] [10]
When Brick 2 was activated, it sent a relay back to Brick 3, the most recent one to send Brick 2 a relay. In the example I have in the OP, it would send it back onRelay which would always be to whichever brick sent that relay.
Loopyla1:
That SPLIT second before Brick 3 fires a relay, Brick 1 would be Brick 2's most recent relay...?
Kalphiter:
FxDTSBrick::onRelay(%this, %something?)
%this.lastRelayBrick = something
parent
FxDTSBrick::fireRelayBack(%this, %something)
%this.lastRelayBrick.fireRelay();
Niliscro:
--- Quote from: Loopyla1 on May 31, 2010, 09:42:57 PM ---That SPLIT second before Brick 3 fires a relay, Brick 1 would be Brick 2's most recent relay...?
--- End quote ---
No, because it's only onActivate - [Self] - [fireRelayBack] in that example, not onRelay. if it was onRelay, then yes.
--- Quote from: Kalphiter on May 31, 2010, 09:45:01 PM ---FxDTSBrick::onRelay(%this, %something?)
%this.lastRelayBrick = something
parent
FxDTSBrick::fireRelayBack(%this, %something)
%this.lastRelayBrick.fireRelay();
--- End quote ---
What's the "%something?"