2023-05-21: Yes, we're back. No, you can't login yet

pickRandNamedBrick

Uploaded by Jes00

The add-on board icon. Events
The add-on file name icon. Event_pickRandNamedBrick.zip
The add-on upload date icon. Aug 22nd 2016, 10:04 PM
The add-on download count icon. 1,210

Description

Use the output event pickRandNamedBrick to pick a random named brick of a specific name and then call onPickRandNamedBrick on that brick and on the randomly picked brick. The second box is a list of input events on the brick to be triggered, separated by spaces.

Example: Name five different bricks Corn. Put the event onActivate > Self > pickRandNamedBrick [Corn] [3 8 9] on some brick. Now when you activate that brick one of the five bricks named Corn will be randomly selected and onPickedRandNamedBrick will be called on it and on the brick that you activated. Also, only events 3, 8 and 9 will be triggered on the bricks(as long as events 3, 8 and 9 all have the input of onPickedRandNamedBrick and are all enabled).

Comments (1)

EV0
2016-08-30 00:57:41
Thanks! I used this for random bomb locations on my SWAT Assault server.