Author Topic: Brick Detection Events  (Read 3771 times)

Brick Detection Events
Allows you to quickly and easily detect bricks from other bricks via events.

Description
This add-on adds the following events to the Self target:

  • detectBrick x y z - Scans for a brick in the specified direction. X, Y and Z are the same as the parameters for the velocity of a projectile, with the exception that they only represent the direction (-1 to 1).

This add-on adds the following input events:

  • onDetectSuccess - Invoked when detectBrick was run and a brick was found.

  • onDetectFailure - Invoked when detectBrick was run and a brick was not found.

Download
Download Event_BrickDetection.zip (664B) from localhostr.com.


Here's an example of how it could be used.


That's loving mint.

Does it take the concept of that lazer thing you was hosting earlier?

That's loving mint.

Does it take the concept of that lazer thing you was hosting earlier?

It has nothing to do with what I hosted previously.

Is it possible to add a maximum distance for detection?

Is it possible to add a maximum distance for detection?

I'll look into it. There's a limit to the amount of parameters an event can have.

I'll look into it. There's a limit to the amount of parameters an event can have.
The limit is set as 4 by all the add-ons who package events and stuff
Make the damn x y z a vector box and then it's only one parameter.

You took something Zmaster made and rewrote it...

Edit:
link:
http://forum.blockland.us/index.php?topic=193956.0


You took something Zmaster made and rewrote it...

Edit:
link:
http://forum.blockland.us/index.php?topic=193956.0

Or just made the same script whitout taking care it already existed?


Should come with Player detection, Brick, Vehicle

the Vehicle and Player ones only working if the owners are in the same minigame


Port releases yet another awesome add-on!
I love it.
However, I don't know what I'm gonna use it for. I'll download it when I've thought of something to use it for!
 :cookieMonster:

Should come with Player detection, Brick, Vehicle

the Vehicle and Player ones only working if the owners are in the same minigame
Agreed.