Player.LagCompensation

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:LagCompensation( Boolean var )
Description:
Moves all the players back to the spots where they were when the player fired the gun (a ping time ago)
Returns: nil
In Object: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.LagCompensation]Player.LagCompensation [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]




DescriptionAs in the Egon gun for GMDM
Used onNewerShared.png
Code
 
// We lag compensate here. This moves all the players back to the spots where they were  when this player fired the gun (a ping time ago).
 
self.Owner:LagCompensation( true )
 
//Dont forget to add ''self.Owner:LagCompensation( false )'' at the end of the function! 
 
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox