Garry's Mod Wiki

WEAPON:Think

  WEAPON:Think()
This hook is predicted. This means that in singleplayer, it will not be called in the Client realm.

Description

Called when the swep thinks.

This hook won't be called during the deploy animation and when using Weapon:DefaultReload.

Works only in players hands. Doesn't work in NPCs hands.
Despite being a predicted hook, this hook is called clientside in single player, however it will not be recognized as a predicted hook to Player:GetCurrentCommand.
This hook will be called before Player movement is processed on the client, and after on the server.
This will not be run during deploy animations after a serverside-only deploy. This usually happens after picking up and dropping an object with +use.

Issue Tracker: 2855