Emit Random Things

How can I make an object emit random things like for a loot chest
http://flowlab.io/game/view/443299

Well, one way could be to do this:

  1. Have the trigger to drop loot generate a random number. If you have three types of loot, pick a number between 1 and 3

  2. Add three emitters, one for each type of loot

  3. Put a filter between the random number and each emitter, that checks for a specific number: 1,2, or 3.

Here’s an example: http://flowlab.io/game/play/443682

How can You only make it emit something ounce by the way

put a switch before the emitter, and turn it off after emitting once.