GetVehicleSpeed: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:
*[[GetVehicleDriver]]
*[[GetVehicleDriver]]
*[[GetVehicleHealth]]
*[[GetVehicleHealth]]
*[[GetPlayerSpeed]]
}}
}}

Revision as of 17:07, 21 August 2023

This function was added in v1.7 (not released yet) and will not work on previous versions.


Description:
Returns the speed of the streamed in vehicle


Parameters:

(vehicleid)

vehicleid : The ID of the vehicle, whose speed is to be obtained.


Return Values:
The Speed of the vehicle as Vector on success, Vector(0,0,0) on failure ( invalid vehicleid )



Related Functions

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