Garry's Mod Wiki
Description
This allows the server to mitigate the lag of the player by moving back all the entities that can be lag compensated to the time the player attacked with his weapon.
This technique is most commonly used on things that hit other entities instantaneously, such as traces.
Lag compensation only works for players and entities that have been enabled with Entity:SetLagCompensated
Despite being defined shared, it can only be used server-side in a Predicted Hook.
Arguments
Example
Do a crowbar-like melee trace, enabling lag compensation before doing so.
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...