Item item crate
From Valve Developer Community
Revision as of 00:11, 18 August 2005 by Ts2do
Creates the specified item when broken
- <integer> Deprecated
- <pointentityclass> Class name of the entity to spawn when the crate is broken. Suggested point entity: item_dynamic_resupply
- <integer> Number of items to emit upon breakage
- 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.
- Template:O basepropphysics
- 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].