Item item crate: Difference between revisions
Jump to navigation
Jump to search
(Revert) |
m (link to basic crates) |
||
Line 37: | Line 37: | ||
* '''OnHealthChanged <float>''' | * '''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]. | : Fires when the health of this breakable changes, passing the new value of health as a percentage of max health, from [0..1]. | ||
==See also== | |||
[[Crates]] for basic crates | |||
[[Category:Entities]] [[Category:Items]] | [[Category:Entities]] [[Category:Items]] |
Revision as of 21:27, 5 February 2007
Entity Description
A supply crate. Creates its specified content when broken.
Keyvalues
- Template:Kv basepropphysics
- CrateType
- <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].
See also
Crates for basic crates