Steam Avatar
You aren't signed in

Output Event - castRelay

1 KB, 14 years ago, submitted by Zack0Wack0

castRelay Event
Information:
Casts a relay (like the fireRelay* events on bricks) to bricks from the player to where the player is looking and triggers the input event onRelay. The text box is the range (in studs/bricks).
Credits:
Everyone who supports me.

darky
i do somehow not understand what does it do ?
Hyperbob
@Darky
IT works the same way the firerelay output event does.
Example:
You have two bricks, one on top of the other.
Bottom brick:
onactivate > self > firerelayup
Top brick:
onrelay > self > setlight > player's light

That's how a basic relay event combo works. With castrelay, the player becomes the bottom brick, like this:
Bottom brick:
onactivate > player > castrelay > (number)

This makes it so that when a player activates the bottom brick, they fire a relay in the direction they are facing. If they are
funinabox
/Agree with under me
Drasmatic
*Credits:
Everyone who supports me.*

That means i'm a supporter!

XD
So this takes away the NESWUD? I'm not entirely sure what use this is. It sounds cool, but I'm not sure why I would need it.
Zack0Wack0
It fires a relay to the brick a player is looking at and trigger's onRelay. It's seriously not that hard to understand...
Slade
Well, it doesn't make much sense, I'm not saying I don't understand how the add-on works, but why post it? I tested and it does the same thing an "Onactivate-->FireRelay" event would work... Unless I'm missing something? I know you guys SAID it works and fires a relay in the direction you're facing, tested, and it does NOT do that, in fact, it only fired the relay on the brick I activated, so it was almost useless.
Zack0Wack0
Haha, wow you're silly. Think about what you're saying before posting.

Quote:
I only tested it on a brick I activated

In order to activate a brick you need to look at it. You need to use things like onPlayerTouch for this ev
wrothmonk
can it trigger the onrelay event from a ways away? otherwise this is useless
Slade
Destiny, you god damn idiot. You're helpless. This mod SAYS it fires a relay in the DIRECTION your facing... It DID NOT DO THAT. *Click* Facing north... I got bricks to the north with onrelay events... BUT WHAT'S THIS?! IT DOESN'T WORK? Exactly, Destiny, THINK about what you're saying... dumbass.
Zack0Wack0
It's funny, because the person below is unable to read and he's calling me a dumbass.

Quote:
bricks from the player to where the player is looking
anokaba
in order to make cast relay work as to look anywhere and it shoots a projectile when your on the brick, you must do:

OnPlayerTouch>CastRelay> (number)
On player youch> spawnProjectile>(number| E,W | N,S | U,D| ect.



now stop the dumb fighting -.-
Blocko
This is Awesome! it could be used for garages, tv remotes, bombs.
luigiferguson
good for that eye-scanner.
Kubius
Holy - wow. Just brilliant.
Zantigo
XP I have no clue what the hell this does but it sounds helpful
CHOKLAT-THUNDA
so you aim your view at it and it fires a relay?
ill download once you make one for activate...
ok?
This is good for... I don't know. Still awesome though.
CameronOwnz
So useful! Thanks Zack!