GetPlayerMovementMode: Difference between revisions

From Onset Developer Wiki
JanHolger (talk | contribs)
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 8: Line 8:
{{FuncParam|player|The player}}
{{FuncParam|player|The player}}


{{FuncReturnValue|2 - Walking, 4 - Crouching}}
{{FuncReturnValue|Returns the [[MovementModes]]}}


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


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