Garry's Mod Wiki

ENTITY:OnChangeActiveWeapon

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.

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.

Page Links


Special Pages


Wikis

?

Render Time: 78ms

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