logic_eventlistener_itemequip

From Source Entities
Jump to navigation Jump to search
Info.png

This page should be checked/updated every so often for correctness or maintenance.
Last checked: Jun 26, 2020 (Check when CS:GO gets a new weapon entity)

Code classes:

logic_eventlistener_itemequip is a point entity present in Csgo-small.pngCounter-Strike: Global Offensive. It fires an output when a player switches to another weapon.

Keyvalues[edit | edit source]

Weapon Type (WeaponType) <choices>
Output will only fire if the weapon the player switched to is of this type.
Weapon Classname (WeaponClassname) <string>
Causes the output to never fire if specified.
Start Enabled (IsEnabled) <boolean>
Entity is active on spawn.
Team Number (TeamNum) <choices>
If set, will only fire its output if the player is on the specified team.
  • -1: Don't care
  • 2: Terrorists
  • 3: CTs

Inputs[edit | edit source]

Enable
Enables the entity.
Disable
Disables the entity.

Outputs[edit | edit source]

OnEventFired
Fires when the player switches weapons.

See Also[edit | edit source]