GetPlayerSpeed

From NPC for VCMP 0.4 Servers
Revision as of 13:17, 8 November 2023 by Habi (talk | contribs) (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 }}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


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 or 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.