GetPlayerMovementSpeed: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|GetPlayerMovementSpeed(player)}} {{FuncParameters}} {{FuncParam|player|__EDIT_ME__}} {{FuncReturn..." |
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| | {{FuncDescription|Get the player's movement speed.}} | ||
{{FuncSyntax|GetPlayerMovementSpeed(player)}} | {{FuncSyntax|GetPlayerMovementSpeed(player)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|player| | {{FuncParam|player|The player identifier.}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns the movement speed as a float.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
local speed = GetPlayerMovementSpeed(player) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
*[[TogglePlayerTag]] | |||
*[[SetPlayerVoiceTone]] | |||
*[[GetPlayerActor]] | |||
*[[GetPlayerSkeletalMeshComponent]] | |||
*[[GetPlayerId]] | |||
*[[SetPlayerPropertyValue]] | |||
*[[GetPlayerPropertyValue]] | |||
*[[SetPlayerRotationRate]] | |||
*[[GetPlayerRotationRate]] | |||
*[[GetPlayerWeapon]] | |||
*[[GetWeaponType]] | |||
*[[GetPlayerWeaponMuzzleLocation]] | |||
*[[GetPlayerBoneNames]] | |||
*[[GetAllPlayersInSphere]] | |||
*[[GetAllPlayersInBox]] | |||
*[[GetTerrainHeight]] | |||
*[[EnableFirstPersonCamera]] | |||
*[[IsFirstPersonCamera]] | |||
*[[SetControllerOrientedMovement]] | |||
*[[IsValidPlayer]] | |||
*[[GetPlayerName]] | |||
*[[GetStreamedPlayers]] | |||
*[[GetPlayerLocation]] | |||
*[[GetPlayerHeading]] | |||
*[[IsPlayerTalking]] | |||
*[[GetPlayerHealth]] | |||
*[[GetPlayerArmor]] | |||
*[[GetPlayerMovementMode]] | |||
*[[GetPlayerMovementSpeed]] | |||
*[[IsPlayerAiming]] | |||
*[[IsPlayerReloading]] | |||
*[[IsPlayerDead]] | |||
*[[GetPlayerBoneLocation]] | |||
*[[SetPlayerOutline]] | |||
*[[SetPlayerClothingPreset]] | |||
*[[GetPlayerVehicle]] | |||
*[[IsPlayerInVehicle]] | |||
*[[GetPlayerEquippedWeaponSlot]] | |||
*[[GetPlayerForwardVector]] | |||
*[[GetPlayerRightVector]] | |||
*[[GetPlayerUpVector]] | |||
*[[GetVehicleActor]] | |||
*[[SetPlayerLipMovement]] | |||
*[[IsPlayerPlayingAnimation]] | |||
*[[GetPlayerCount]] | |||
*[[CancelAimImmediately]] |
Latest revision as of 20:11, 2 September 2020
Description
Get the player's movement speed.
Syntax
GetPlayerMovementSpeed(player)
Parameters
- player
The player identifier.
Return Value
- Returns the movement speed as a float.
Example
local speed = GetPlayerMovementSpeed(player)
See also
- TogglePlayerTag
- SetPlayerVoiceTone
- GetPlayerActor
- GetPlayerSkeletalMeshComponent
- GetPlayerId
- SetPlayerPropertyValue
- GetPlayerPropertyValue
- SetPlayerRotationRate
- GetPlayerRotationRate
- GetPlayerWeapon
- GetWeaponType
- GetPlayerWeaponMuzzleLocation
- GetPlayerBoneNames
- GetAllPlayersInSphere
- GetAllPlayersInBox
- GetTerrainHeight
- EnableFirstPersonCamera
- IsFirstPersonCamera
- SetControllerOrientedMovement
- IsValidPlayer
- GetPlayerName
- GetStreamedPlayers
- GetPlayerLocation
- GetPlayerHeading
- IsPlayerTalking
- GetPlayerHealth
- GetPlayerArmor
- GetPlayerMovementMode
- GetPlayerMovementSpeed
- IsPlayerAiming
- IsPlayerReloading
- IsPlayerDead
- GetPlayerBoneLocation
- SetPlayerOutline
- SetPlayerClothingPreset
- GetPlayerVehicle
- IsPlayerInVehicle
- GetPlayerEquippedWeaponSlot
- GetPlayerForwardVector
- GetPlayerRightVector
- GetPlayerUpVector
- GetVehicleActor
- SetPlayerLipMovement
- IsPlayerPlayingAnimation
- GetPlayerCount
- CancelAimImmediately