GetPing: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
Line 11: Line 11:


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
print("Player ping: "..GetPing()..".")
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
[[GetNetworkStats]]
[[GetNetworkStats]]

Latest revision as of 10:02, 12 December 2019

GetPing

Type: Function
Context: Client
Introduced: v1.0

Description

Gets the client ping.

Syntax

GetPing()

Parameters

  • This function has no parameters.

Return Value

  • The clients ping.

Example

print("Player ping: "..GetPing()..".")

See also

GetNetworkStats