info_item_position

From Valve Developer Community
Jump to: navigation, search
English (en)中文 (zh)
... Icon-Important.png
class hierarchy
CInfoItemPosition
CPointEntity
CBaseEntity

info_item_position is a point entity available in Left 4 Dead 2 Left 4 Dead 2. An entity that represents a possible item location in a map. Scripts can search for these entities and use them to spawn objects for different game modes

Keyvalues

Helper Model (model) <model path>
A model used to represent this entity.
Group (group) <integer>
Group Number.
Rarity (rarity) <choices>
Item rarity at this location.
  • 0: Common
  • 1: Occasional
  • 2: Scarce
Replace (replace01) to Replace (replace10) <string>
This is a replacement parameter. It goes in the form of $variable value. All entities inside of the spawn group that have $variable somewhere will be replaced with the value contents. Example: $color 255 0 0.

Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.

Inputs

SetGroup
Set the group number.
SetRarity
Set the rarity.