Garry's Mod Wiki

WEAPON:GetCapabilities

  number WEAPON:GetCapabilities()

Description

This hook is for NPCs, you return what they should try to do with it.

Calling NPC:CapabilitiesGet in this hook on the same entity can cause infinite loops since that function adds the result of WEAPON:GetCapabilities on top of the return value.

Returns

1 number with CAP enum
A number defining what NPC should do with the weapon. Use the CAP enum.