Item item crate: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:item_item_crate}}
{{DISPLAYTITLE:item_item_crate}}
[[Image:Item_item_crate.jpg|thumb|250px|right|An item_item_crate.]]
{{hl2 point|item_item_crate}}
{{hl2 point|item_item_crate}}


==Entity Description==
==Entity description==
 
[[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.


Line 43: Line 41:
* [[item_ammo_crate]] for the infinite-ammo bins
* [[item_ammo_crate]] for the infinite-ammo bins


[[Category:Entities]] [[Category:Items]]
[[Category:Items]]

Revision as of 13:59, 15 January 2012

An item_item_crate.

Template:Hl2 point

Entity description

A supply crate. Creates its specified content when broken.

Keyvalues

  • Note.pngNote:Page left for viewable history, content moved to prop_physics
  • 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

  • Note.pngNote:Page left for viewable history, content moved to prop_physics

Inputs

  • Note.pngNote:Page left for viewable history, content moved to prop_physics
  • DamageFilter:
SetDamageFilter <stringRedirectInput/string>
Sets the entity to use as damage filter. Pass in an empty string (no parameter) to clear the damage filter.
  • Break
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

  • Note.pngNote:Page left for viewable history, content moved to prop_physics
  • 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