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..." |
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| | {{FuncDescription|Gets the client ping.}} | ||
{{FuncSyntax|GetPing()}} | {{FuncSyntax|GetPing()}} | ||
Line 8: | Line 8: | ||
{{FuncNoParam}} | {{FuncNoParam}} | ||
{{FuncReturnValue| | {{FuncReturnValue|The clients ping.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
print("Player ping: "..GetPing()..".") | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
[[GetNetworkStats]] |
Latest revision as of 10:02, 12 December 2019
Description
Gets the client ping.
Syntax
GetPing()
Parameters
- This function has no parameters.
Return Value
- The clients ping.
Example
print("Player ping: "..GetPing()..".")