Garry's Mod Wiki

Revision Difference

Global.GetPredictionPlayer#526521

<function name="GetPredictionPlayer" parent="Global" type="libraryfunc"> <added>2020.03.20</added>⤶ <description> Returns the player whose movement commands are currently being processed. The player this returns can safely have <page>Player:GetCurrentCommand</page>() called on them. See <page>Prediction</page>. </description> <realm>Shared</realm> <rets> <ret name="" type="Player">The player currently being predicted, or NULL if no command processing is currently being done.</ret> </rets> </function>