Skip to main content

trigger_random_unique

trigger_random_unique icon
Point entityPorted from FeaturefulSven Co-op

A trigger_random_unique works like a trigger_random where each target fires only once: each trigger fires one of the targets that haven't fired yet, with the activator of the trigger. Maps from Sven Co-op use the same name.

Attributes​

The entity also has these common keys:

KeyDescriptionDefault
Number of targetstarget_count

Sets how many target slots it picks from, where 0 means up to the last slot you filled.

Default 0
Target 1target1

One of the targets it picks from.

Target 2target2

One of the targets it picks from.

Target 3target3

One of the targets it picks from.

Target 4target4

One of the targets it picks from.

Target 5target5

One of the targets it picks from.

Target 6target6

One of the targets it picks from.

Target 7target7

One of the targets it picks from.

Target 8target8

One of the targets it picks from.

Target 9target9

One of the targets it picks from.

Target 10target10

One of the targets it picks from.

Target 11target11

One of the targets it picks from.

Target 12target12

One of the targets it picks from.

Target 13target13

One of the targets it picks from.

Target 14target14

One of the targets it picks from.

Target 15target15

One of the targets it picks from.

Target 16target16

One of the targets it picks from.

Trigger when all firedtrigger_on_exhaust

Fires when every target has fired once, with the trigger_random_unique as the activator.

First target to firefirst_target

Sets the slot from 1 to 16 that fires first, where 0 picks one at random.

Default 0
Reset at round startround_reset

With 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)
Default No (0)

Flags​

1Reusable

When every target has fired, the targets can fire again. Without this flag, the entity then does nothing

32Not repetitive

The same target never fires twice in a row, if there are two or more left

64Scheduled order

The random picks follow a sequence that is fixed when the map starts

Notes​

  • An empty slot between filled slots can be picked, and then nothing fires
  • A target that triggers the same trigger_random_unique while it fires is ignored

See also​

Changes since 1.38​

  • trigger_random_unique is new