GetPlayerMovementSpeed: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
Line 1: Line 1:
{{Info|Function|Server & Client|1.0}}
{{Info|Function|Server & Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Get the player's movement speed.}}


{{FuncSyntax|GetPlayerMovementSpeed(player)}}
{{FuncSyntax|GetPlayerMovementSpeed(player)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|player|__EDIT_ME__}}
{{FuncParam|player|The player identifier.}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|__EDIT_ME__}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
local speed = GetPlayerMovementSpeed(player)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{PlayerFunctions}}

Revision as of 17:11, 16 January 2020

GetPlayerMovementSpeed

Type: Function
Context: Server & Client
Introduced: v1.0

Description

Get the player's movement speed.

Syntax

GetPlayerMovementSpeed(player)

Parameters

  • player
    The player identifier.

Return Value

  • __EDIT_ME__

Example

local speed = GetPlayerMovementSpeed(player)

See also

Template:PlayerFunctions