GetPlayerMovementMode: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Info|Function|Server & Client|1.0}}
{{Info|Function|Server & Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Returns the players movement mode}}


{{FuncSyntax|GetPlayerMovementMode(player)}}
{{FuncSyntax|GetPlayerMovementMode(player)}}


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


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns the [[MovementModes]]}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua>
print("Player Movement Mode: " .. GetPlayerMovementMode(player))
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{ServerPlayerFunctions}}

Latest revision as of 14:47, 26 June 2021

GetPlayerMovementMode

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

Description

Returns the players movement mode

Syntax

GetPlayerMovementMode(player)

Parameters

  • player
    The player

Return Value

Example

print("Player Movement Mode: " .. GetPlayerMovementMode(player))

See also