trigger_random

A trigger_random fires one of up to 16 targets at random, either once for each trigger or, with Timed, again and
again after random delays.
Attributes
The entity also has these common keys:
- Naming and triggering: Name
target_countSets how many target slots it picks from, where 0 means up to the last slot you filled.
0target1One of the targets it picks from.
target2One of the targets it picks from.
target3One of the targets it picks from.
target4One of the targets it picks from.
target5One of the targets it picks from.
target6One of the targets it picks from.
target7One of the targets it picks from.
target8One of the targets it picks from.
target9One of the targets it picks from.
target10One of the targets it picks from.
target11One of the targets it picks from.
target12One of the targets it picks from.
target13One of the targets it picks from.
target14One of the targets it picks from.
target15One of the targets it picks from.
target16One of the targets it picks from.
min_delayWith Timed, sets the shortest delay between two fires, in seconds.
0max_delayWith Timed, sets the longest delay between two fires, in seconds.
0trigger_numberWith Timed, sets how many times it fires before it turns off, where 0 means no limit.
0trigger_on_limitFires when it reaches the Trigger number limit.
trigger_on_exhaustWith Unique, fires when every target has fired once.
first_targetSets the slot from 1 to 16 that fires first, where 0 picks one at random.
0round_resetWith Yes, the entity goes back to its state at map load at each round start, before the players spawn. See Round hooks for more details.
- No (0)
- Yes (1)
No (0)Flags
1Start onWith Timed, it starts firing when the map starts
2Trigger onceWith Timed, it fires once each time it is started, and then stops
4ReusableWith Unique, once every target has fired, all of them can be picked again
8TimedEvery trigger starts or stops it, and the use type makes no difference. While it runs, it fires a random target after each random delay between Minimum delay and Maximum delay
16UniqueEach target only fires once until all of them have fired
32Not repetitiveThe same target never fires twice in a row, if there are two or more
64Scheduled orderThe random picks follow a sequence that is fixed when the map starts
128Scheduled delaysWith Timed, the random delays follow a sequence that is fixed when the map starts
Notes
- Without Timed, the target gets the activator of the trigger. With Timed, the
trigger_randomis the activator - An empty slot between filled slots can be picked, and then nothing fires
- A target that triggers the same
trigger_randomwhile it fires is ignored - Maps from Sven Co-op may call this entity
trigger_random_time, and SBO accepts that name too. It is atrigger_randomwith Timed set.trigger_random_uniqueis atrigger_randomwith Unique set
See also
trigger_timer- fires one target after random delaystrigger_random_unique- picks each target once
Changes since 1.38
trigger_randomis new

