Skip to content

Commit

Permalink
Add timeout function (#1672)
Browse files Browse the repository at this point in the history
  • Loading branch information
thegrb93 authored Mar 15, 2024
1 parent 361dd71 commit 21884b3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lua/starfall/libs_sh/game.lua
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,14 @@ else
-- @return number Server frametime standard deviation
game_library.serverFrameTime = engine.ServerFrameTime

--- Returns if the client is currently timing out from the server
-- @name game_library.isTimingOut
-- @client
-- @class function
-- @return boolean If currently timing out
-- @return number Time since the connection started to timeout
game_library.isTimingOut = GetTimeoutInfo

end

end

0 comments on commit 21884b3

Please sign in to comment.