Item item crate: Difference between revisions
Jump to navigation
Jump to search
(Changed description. Pic coming up.) |
m (Why won't this picture work? Let's try this... Ah, much better.) |
||
Line 3: | Line 3: | ||
==Entity Description== | ==Entity Description== | ||
[[Image: | [[Image:Item_item_crate.jpg|thumb|300px|right|An item_item_crate.]] | ||
A supply crate. Creates its specified content when broken. | A supply crate. Creates its specified content when broken. |
Revision as of 11:23, 9 March 2006
Entity Description
A supply crate. Creates its specified content when broken.
Keyvalues
- <integer> Deprecated
- ItemClass
- <pointentityclass> Class name of the entity to spawn when the crate is broken. Suggested point entity: item_dynamic_resupply
- ItemCount
- <integer> Number of items to emit upon breakage
Flags
Inputs
- Breaks the breakable.
- SetHealth <integer>
- Sets a new value for health. If the breakable's health reaches zero it will break. Use Break input instead of 0.
- AddHealth <integer>
- Adds health to the breakable. If the breakable's health reaches zero it will break.
- RemoveHealth <integer>
- Removes health from the breakable. If the breakable's health reaches zero it will break.
Outputs
- Template:O basepropphysics
- OnBreak
- Fires when broken.
- OnHealthChanged <float>
- Fires when the health of this breakable changes, passing the new value of health as a percentage of max health, from [0..1].