Item spawner

Item spawner

Classnames: item_spawner
Purpose: Generating artifacts.
H2 Code: artifact.hc
fields required: origin, targetname, a spawning field
Actually spawns mana and artifacts, not items. The item is spawned when the item_spawner is triggered. It only works once, I don't think there's any multiple-use spawner entity (but remember that in deathmatch, useful stuff respawns automatically, without needing any special entities to make it happen!!).

Fields

origin Value is a triple of number, location of item. Your editor should manage this visually, automatically.
targetname Value is a name, targetted by some trigger
a spawning field One of the fields listed here, indicating what to spawn.


Example

For a button to trigger the creation of a torch, we can have the following two entities:

button:
classnamebutton
targetshiny
item_spawner:
classnameitem_spawner
targetnameshiny
cnt_torch1
origin0 86 233

When the button is pushed, the torch appears at the location of the spawner (it seems to be tossed up, then settle down to the floor).


Back to the list.