Info
This entity allows you to spawn a random item from a weighted list. It can only spawn one item at a time in normal circumstances.
Flags
Only Once (1)
If enabled, the entity will be removed after spawning an item.
Keyvalues
To specify what items the itemmaker_random can choose from for spawn, you must turn Smart Edit mode off and add attributes. Enter the item's name as the KEY, and its weight as the VALUE, an item with more weight is more likely to be chosen. These are all the valid item names:
0: nothing
1: item_battery
3: weapon_glock
4: ammo_glock
5: weapon_mp5
6: ammo_mp5
9: ammo_shotgun
10: weapon_crossbow
11: ammo_crossbow
12: weapon_revolver
13: ammo_revolver
14: weapon_rpg
15: ammo_rpg
16: ammo_uranium
18: weapon_tripmine
19: weapon_satchel
20: weapon_snark
21: weapon_hivehand
22: weapon_crowbar
23: weapon_gauss
24: weapon_egon
25: item_longjump
26: item_suit
Container (container)
If specified, the item will be spawned at this location.
I/O Reaction
On Receive Inputs
On | Toggle -> Spawn Item.
Kill -> Destroy (only entity, not spawned items).
Sending Outputs
Target (Toggle) -> On pick up a spawned item.
KillTarget (Kill) -> On pick up a spawned item.