GetPlayerMovementMode: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|GetPlayerMovementMode(player)}} {{FuncParameters}} {{FuncParam|player|__EDIT_ME__}} {{FuncReturnV..."
 
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Info|Function|Server|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