Difference between revisions of "Item item crate"

From Valve Developer Community
Jump to: navigation, search
m (link to basic crates)
m (See also)
Line 39: Line 39:
  
 
==See also==
 
==See also==
[[Crates]] for basic crates
+
* [[Crates]] for basic crates
 +
* [[item_ammo_crate]] for the infinite-ammo bins
  
 
[[Category:Entities]] [[Category:Items]]
 
[[Category:Entities]] [[Category:Items]]

Revision as of 21:28, 5 February 2007

Template:Wrongtitle

Entity Description

An item_item_crate.

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

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