Garry's Mod Wiki
boolean IsFirstTimePredicted()
Description
Returns if this is the first time this hook was predicted.
This is useful for one-time logic in your SWEPs PrimaryAttack, SecondaryAttack and Reload and other (to prevent those hooks from being called rapidly in succession). It's also useful in a Move hook for when the client predicts movement.
Visit Prediction for more information about this behavior.
This is already used internally for Entity:EmitSound, Weapon:SendWeaponAnim and Entity:FireBullets, but NOT in util.Effect.
Returns
Example
An override for GM:KeyPress, to work around the hook being called multiple times.
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated four times a day. Edits and history are not available.
Last Parsed: Loading...