G.IsFirstTimePredicted
From GMod Wiki
Function | |
Syntax |
IsFirstTimePredicted( ) Where is this used? |
Description: | |
Returns if it's the first time being predicted, for SWEPs and Move hooks | |
Returns: | Boolean |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.IsFirstTimePredicted]G.IsFirstTimePredicted [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Additional Notes
- This is here for one-time logic in your SWEPs PrimaryAttack, SecondaryAttack and Reload. It's also useful in a Move hook for when the client predicts movement.
- This is meant to alleviate the problem with SWEP animations, so be careful of excluding your animation logic with this function.