Garry's Mod Wiki


ENTITY:OnChangeActiveWeapon( Weapon old, Weapon new )

Just Added

This was just added in the latest version (2021.01.27). It might only be available on the Dev Branch right now.


Called when the currently active weapon of the SNPC changes.

This hook only works on ai type entities.


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

Page Links

Special Pages



Render Time: 78ms

DB GetPage 46
Generate Html 9
SaveChanges (1) 11
Render Body 0
Render Sidebar 10