GetPing: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|GetPing()}} {{FuncParameters}} {{FuncNoParam}} {{FuncReturnValue|__EDIT_ME__}} == Example == __E..."
 
28days (talk | contribs)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Gets the client ping.}}


{{FuncSyntax|GetPing()}}
{{FuncSyntax|GetPing()}}
Line 8: Line 8:
{{FuncNoParam}}
{{FuncNoParam}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|The clients ping.}}


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


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
[[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