GetPlayerSpeed: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
(Created page with "{{Welcome| desc=This will return the speed of the specified player, if that player is onfoot.| params=<syntaxhighlight lang="lua">( playerId)</syntaxhighlight> <poem>::playerId: The ID of the player whose speed is to be obtained. </poem>| retvals=The speed of player as Vector or zero vector on error(player not connected).| relfuncs=*GetVehicleSpeed }}")
 
No edit summary
 
Line 4: Line 4:
<poem>::playerId: The ID of the player whose speed is to be obtained.
<poem>::playerId: The ID of the player whose speed is to be obtained.
</poem>|
</poem>|
retvals=The speed of player as Vector or zero vector on error(player not connected).|
retvals=The speed of player as Vector on success and zero vector on error(player not connected).|
relfuncs=*[[GetVehicleSpeed]]
relfuncs=*[[GetVehicleSpeed]]
}}
}}

Latest revision as of 13:17, 8 November 2023


Description:
This will return the speed of the specified player, if that player is onfoot.


Parameters:

( playerId)

playerId: The ID of the player whose speed is to be obtained.


Return Values:
The speed of player as Vector on success and zero vector on error(player not connected).



Related Functions

The following functions may be helpful as they relate to this function in one way or another.