Garry's Mod Wiki

ENTITY:OnChangeActiveWeapon

  ENTITY:OnChangeActiveWeapon( Weapon old, Weapon new )

Description

Called when the currently active weapon of the SNPC changes.

This hook only works on ai type entities.

Arguments

1 Weapon old
The previous active weapon.
2 Weapon new
The new active weapon.