item_item_crate is an existing point entity available in (HL2) Half-Life 2 with all versions of Mapbase.

Item Crate



KeyValues

- Model (model) <studio>
The model of this item_item_crate. Only works when this crate's appearance is set to use a custom model.

Inputs

- SetContents <string>
Sets the crate's contents. (e.g. its specified item)
- SetItemCount <string>
Sets the item count.
- MergeContentsWithPlayer <target_destination>
Gives whatever the crate contains to a player without doing anything to the crate itself. NOTE: This does not actually change the crate's contents on its own, if you want the crate to be empty after merging with a player, you must use SetItemCount or SetContents as well. (this input is also currently unsupported with template crates)

Outputs

- OnItem <ehandle>
Fires for each item spawned by this crate.