Item item crate: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Changed description. Pic coming up.) |
||
Line 1: | Line 1: | ||
{{wrongtitle|title=item_item_crate}} | {{wrongtitle|title=item_item_crate}} | ||
==Entity Description== | ==Entity Description== | ||
Creates | |||
[[Image:item_item_crate.jpg|thumb|300px|right|An item_item_crate.]] | |||
A supply crate. Creates its specified content when broken. | |||
==Keyvalues== | ==Keyvalues== | ||
* {{kv basepropphysics}} | * {{kv basepropphysics}} | ||
Line 11: | Line 16: | ||
* '''ItemCount''' | * '''ItemCount''' | ||
: <integer> Number of items to emit upon breakage | : <integer> Number of items to emit upon breakage | ||
==Flags== | ==Flags== | ||
* {{fl basepropphysics}} | * {{fl basepropphysics}} | ||
==Inputs== | ==Inputs== | ||
* {{i basepropphysics}} | * {{i basepropphysics}} | ||
Line 24: | Line 31: | ||
* '''RemoveHealth <integer>''' | * '''RemoveHealth <integer>''' | ||
: Removes health from the breakable. If the breakable's health reaches zero it will break. | : Removes health from the breakable. If the breakable's health reaches zero it will break. | ||
==Outputs== | ==Outputs== | ||
* {{o basepropphysics}} | * {{o basepropphysics}} | ||
Line 30: | Line 38: | ||
* '''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]. | ||
[[Category:Entities]] [[Category:Items]] | [[Category:Entities]] [[Category:Items]] |
Revision as of 10:54, 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].