Garry's Mod Wiki

Revision Difference

ENTITY:OnChangeActiveWeapon#529199

<function name="OnChangeActiveWeapon" parent="ENTITY" type="hook">⤶ <ishook>yes</ishook>⤶ <added>2021.01.27</added>⤶ <description>Called when the currently active weapon of the SNPC changes.⤶ <note>This hook only works on `ai` type entities.</note>⤶ </description>⤶ <realm>Server</realm>⤶ <predicted>No</predicted>⤶ <args>⤶ <arg name="old" type="Weapon">The previous active weapon.</arg>⤶ <arg name="new" type="Weapon">The new active weapon.</arg>⤶ </args>⤶ </function>⤶ ⤶