Item crate: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 6: Line 6:
{{note | [[item_crate]] is very similar to [[item_item_crate]]. The only difference is the "Script Preset" keyvalue, which allows you to have different groups of props fall out of the crate upon breaking. Two examples are the "Military_big" preset and the "military" preset. Once broken, the "military_big" preset would drop lots of military-related items, such as ammo crates, etc. that would only be able to fit into a larger type of crate.}}
{{note | [[item_crate]] is very similar to [[item_item_crate]]. The only difference is the "Script Preset" keyvalue, which allows you to have different groups of props fall out of the crate upon breaking. Two examples are the "Military_big" preset and the "military" preset. Once broken, the "military_big" preset would drop lots of military-related items, such as ammo crates, etc. that would only be able to fit into a larger type of crate.}}
==Keyvalue==
==Keyvalue==
{{KV|Item Type (ItemClass)|pointentityclass|[[Classname]] of the entity to spawn when the crate is broken.}}
{{KV|Script Preset (ItemClass)|pointentityclass|[[Classname]] the preset props that will fall out of the crate upon breaking.}}

Revision as of 15:03, 20 February 2024

Black Mesa Level Aesthetics

Stub

This article or section is a stub. You can help by expanding it.

Not to be confused with item_item_crate.

item_crate is a point available in Black Mesa Black Mesa. It can be configured to spawn items into the world when broken, like junk, tools, or electronics. They can also be used to spawn supplies such as ammo or an item_battery and item_healthkit.

Note.pngNote: The item_battery and item_healthkit from Half-Life 2 Half-Life 2 has the same function as the same two entities in Black Mesa Black Mesa, they just have different models.
Note.pngNote: item_crate is very similar to item_item_crate. The only difference is the "Script Preset" keyvalue, which allows you to have different groups of props fall out of the crate upon breaking. Two examples are the "Military_big" preset and the "military" preset. Once broken, the "military_big" preset would drop lots of military-related items, such as ammo crates, etc. that would only be able to fit into a larger type of crate.

Keyvalue

Script Preset (ItemClass) ([todo internal name (i)]) <pointentityclass>
Classname the preset props that will fall out of the crate upon breaking.