Sven Co-opedia Wiki

This article is a stub.
Please help the Sven Co-opedia Wiki by expanding it.
Thank you!

trigger_random is a map function in Sven Co-op that randomly selects an entity defined in a list of targetnames to trigger. A total of 16 entities can be listed.

"classname" "trigger_random"
"min_delay" "t"
"max_delay" "t"
"target_count" "n"
"target#" "entity_x"
"targetname" "target_me"
"spawnflags" "s"

In the above example, "target#" is a placeholder- you must define the target and the number for as many targets as you need, eg "target1", "target2"... all the way up to "target16", 16 being the maximum number of targets. Each target has its keyvalue set as normal for the target entity to be triggered.

Point Entities ambient_generic · ambient_music · ammo_ · custom_precache · env_xenmaker
game_counter · game_counter_set · game_player_counter · game_player_equip · game_end
item_inventory · multi_manager · multisource · monster_ · player_weaponstrip · squadmaker
trigger_auto · trigger_relay · trigger_changetarget · trigger_changevalue · trigger_changesky · trigger_random
weapon_ · weaponbox
Brush Entities func_conveyor · func_wall
trigger_changelevel · trigger_once · trigger_multiple
Obsolete Entities trigger_endsection · trigger_counter · trigger_autosave