Garry's Mod Wiki

ENTITY:OnChangeActiveWeapon

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.

Special Pages


Wikis

?

Render Time: 19ms

DB GetPage 2
Generate Html 2
SaveChanges (1) 7
Render Body 0
Render Sidebar 6